Class TrueSchema


  • public class TrueSchema
    extends EmptySchema
    Author:
    erosb
    • Method Detail

      • describeTo

        public void describeTo​(JSONPrinter writer)
        Description copied from class: Schema
        Describes the instance as a JSONObject to writer.

        First it adds the "title , "description" and "id" properties then calls Schema.describePropertiesTo(JSONPrinter), which will add the subclass-specific properties.

        It is used by Schema.toString() to serialize the schema instance into its JSON representation.

        Overrides:
        describeTo in class Schema
        Parameters:
        writer - it will receive the schema description