com.reprezen.genflow.common.jsonschema.JsonSchemaFormat Maven / Gradle / Ivy
/**
* Copyright © 2013, 2016 Modelsolv, Inc.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property
* of ModelSolv, Inc. See the file license.html in the root directory of
* this project for further information.
*/
package com.reprezen.genflow.common.jsonschema;
@SuppressWarnings("all")
public class JsonSchemaFormat {
public final boolean inlineSimpleTypes;
/**
* Use boolean, not arrays for the value of "required" property as in JSON Schema v3
*/
public final boolean defineRequiredElementsInJsonSchemaV3Style;
public final boolean useSwaggerStyleBase64Binary;
public JsonSchemaFormat(final boolean inlineSimpleTypes, final boolean useJsonSchemaV3Required, final boolean useSwaggerStyleBase64Binary) {
this.inlineSimpleTypes = inlineSimpleTypes;
this.defineRequiredElementsInJsonSchemaV3Style = useJsonSchemaV3Required;
this.useSwaggerStyleBase64Binary = useSwaggerStyleBase64Binary;
}
public static final JsonSchemaFormat STANDARD = new JsonSchemaFormat(false, false, false);
public static final JsonSchemaFormat SWAGGER = new JsonSchemaFormat(false, false, true);
public static final JsonSchemaFormat RAML = new JsonSchemaFormat(true, true, false);
public static final JsonSchemaFormat JSON_SCHEMA_V3 = new JsonSchemaFormat(false, true, false);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy