public class ObjectSchema extends ContainerTypeSchema
This type represents a JsonSchema as an object type
  • Field Details

    • additionalProperties

      private ObjectSchema.AdditionalProperties additionalProperties
      This attribute defines a jsonSchema for all properties that are not explicitly defined in an object type definition. If specified, the value MUST be a jsonSchema or a boolean. If false is provided, no additional properties are allowed beyond the properties defined in the jsonSchema. The default value is an empty jsonSchema which allows any value for additional properties.
    • dependencies

      private Map<String,Object> dependencies
      This attribute is an object that defines the requirements of a property on an instance object. If an object instance has a property with the same name as a property in this attribute's object, then the instance must be valid against the attribute's property value
    • patternProperties

      private Map<String,JsonSchema> patternProperties
      This attribute is an object that defines the jsonSchema for a set of property names of an object instance. The name of each property of this attribute's object is a regular expression pattern in the ECMA 262/Perl 5 format, while the value is a jsonSchema. If the pattern matches the name of a property on the instance object, the value of the instance's property MUST be valid against the pattern name's jsonSchema value.
    • properties

      private Map<String,JsonSchema> properties
      This attribute is an object with property definitions that define the valid values of instance object property values. When the instance value is an object, the property values of the instance object MUST conform to the property definitions in this object. In this object, each property definition's value MUST be a jsonSchema, and the property's name MUST be the name of the instance property that it defines. The instance property value MUST be valid according to the jsonSchema from the property definition. Properties are considered unordered, the order of the instance properties MAY be in any order.
  • Constructor Details

    • ObjectSchema

      public ObjectSchema()
  • Method Details