org.openapijsonschematools.components.schemas.NoAdditionalProperties.java public class NoAdditionalProperties
A class that contains necessary nested schema classes, and classes to store validated list and map payloads
| Modifier and Type | Class and Description |
|---|---|
| static class | NoAdditionalProperties.NoAdditionalProperties1 schema class |
| static class | NoAdditionalProperties.NoAdditionalPropertiesMap output class for Map payloads |
| static class | NoAdditionalProperties.PetId schema class |
| static class | NoAdditionalProperties.Id schema class |
| static class | NoAdditionalProperties.AdditionalProperties schema class |
public static class NoAdditionalProperties1
extends JsonSchema
A schema class that validates payloads
| Modifier and Type | Field and Description |
|---|---|
| static LinkedHashMap<String, KeywordValidator> | keywordToValidator new LinkedHashMap<>(Map.ofEntries( new KeywordEntry("type", new TypeValidator(Set.of(FrozenMap.class))), new KeywordEntry("properties", new PropertiesValidator(Map.ofEntries( new PropertyEntry("id", Id.class)), new PropertyEntry("petId", PetId.class)) ))), new KeywordEntry("required", new RequiredValidator(Set.of( "id" ))), new KeywordEntry("additionalProperties", new AdditionalPropertiesValidator(AdditionalProperties.class)) )); |
| Modifier and Type | Method and Description |
|---|---|
| static NoAdditionalPropertiesMap | validate(Map<String, Long> arg, SchemaConfiguration configuration) |
public static class NoAdditionalPropertiesMap
extends FrozenMap<String, Long>
A class to store validated Map payloads
| Modifier and Type | Method and Description |
|---|---|
| static NoAdditionalPropertiesMap | of(Map<String, Long> arg, SchemaConfiguration configuration) |
| long | id() value must be a 64 bit integer |
| long | petId() [optional] value must be a 64 bit integer |
type: Map<String, Object>
| Key | Type | Description | Notes |
|---|---|---|---|
| id | long | value must be a 64 bit integer | |
| petId | long | [optional] value must be a 64 bit integer |
public static class PetId
extends Int64JsonSchema
A schema class that validates payloads
public static class Id
extends Int64JsonSchema
A schema class that validates payloads
public static class AdditionalProperties
extends NotAnyTypeJsonSchema
A schema class that validates payloads
| Methods Inherited from class org.openapijsonschematools.schemas.NotAnyTypeJsonSchema |
|---|
| validate |