Class JsonResponseSchema


  • public class JsonResponseSchema
    extends ResponseSchema
    The schema for a response in JSON format.
    • Constructor Detail

      • JsonResponseSchema

        public JsonResponseSchema​(String name,
                                  String schema,
                                  boolean strict)
        Used by Jackson deserialization to create a new instance of the JsonResponseSchema class.
        Parameters:
        name - The name of the schema.
        schema - The schema.
        strict - Whether the schema is strict.
    • Method Detail

      • getName

        public String getName()
        Gets the name of the schema.
        Returns:
        The name of the schema.
      • getSchema

        public String getSchema()
        Gets the schema.
        Returns:
        The schema.
      • isStrict

        public boolean isStrict()
        Gets whether the schema is strict.
        Returns:
        Whether the schema is strict.