Class JsArrayOfJsObjSpec

    • Method Detail

      • isRequired

        public boolean isRequired()
        Specified by:
        isRequired in interface JsSpec
        Returns:
        whether or not the key is optional.
      • nullable

        public JsSpec nullable()
        Specified by:
        nullable in interface JsSpec
        Returns:
        the same spec with the nullable flag enabled
      • optional

        public JsSpec optional()
        Specified by:
        optional in interface JsSpec
        Returns:
        the same spec with the optional flag enabled
      • parser

        public JsSpecParser parser()
        Specified by:
        parser in interface JsSpec
        Returns:
        the deserializer used during the parsing process to parse an array of bytes or string into a json value
      • test

        public java.util.Set<JsErrorPair> test​(JsPath parentPath,
                                               JsValue value)
        Description copied from interface: JsSpec
        verify if the given value satisfy this spec.
        Specified by:
        test in interface JsSpec
        Parameters:
        parentPath - the path where the tested value is located.
        value - the tested value
        Returns:
        a set of path/error pairs