Package | Description |
---|---|
com.github.victools.jsonschema.generator.impl | |
com.github.victools.jsonschema.generator.naming |
Modifier and Type | Method and Description |
---|---|
DefinitionKey |
SchemaGenerationContextImpl.parseType(com.fasterxml.classmate.ResolvedType type)
Parse the given (possibly generic) type and populate this context.
|
Modifier and Type | Method and Description |
---|---|
Set<DefinitionKey> |
SchemaGenerationContextImpl.getDefinedTypes()
Retrieve the set of all types for which a definition has been remembered in this context.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
SchemaGenerationContextImpl.getDefinition(DefinitionKey key)
Retrieve the previously added definition for the specified type.
|
List<com.fasterxml.jackson.databind.node.ObjectNode> |
SchemaGenerationContextImpl.getNullableReferences(DefinitionKey key)
Getter for the nodes representing nullable references to the given type.
|
List<com.fasterxml.jackson.databind.node.ObjectNode> |
SchemaGenerationContextImpl.getReferences(DefinitionKey key)
Getter for the nodes representing not-nullable references to the given type.
|
boolean |
SchemaGenerationContextImpl.shouldNeverInlineDefinition(DefinitionKey key)
Determine whether the definition for the given type should always be included in the
SchemaKeyword.TAG_DEFINITIONS , even if only
occurring once. |
Modifier and Type | Method and Description |
---|---|
String |
CleanSchemaDefinitionNamingStrategy.adjustNullableName(DefinitionKey key,
String definitionName,
SchemaGenerationContext generationContext) |
default String |
SchemaDefinitionNamingStrategy.adjustNullableName(DefinitionKey key,
String definitionName,
SchemaGenerationContext generationContext)
Provide an alternative definition name for the given key and name when it is nullable.
|
String |
CleanSchemaDefinitionNamingStrategy.getDefinitionNameForKey(DefinitionKey key,
SchemaGenerationContext generationContext) |
String |
DefaultSchemaDefinitionNamingStrategy.getDefinitionNameForKey(DefinitionKey key,
SchemaGenerationContext generationContext) |
String |
SchemaDefinitionNamingStrategy.getDefinitionNameForKey(DefinitionKey key,
SchemaGenerationContext generationContext)
Getter for the name/key in the "definitions"/"$defs" to represent the given
DefinitionKey . |
Modifier and Type | Method and Description |
---|---|
void |
CleanSchemaDefinitionNamingStrategy.adjustDuplicateNames(Map<DefinitionKey,String> subschemasWithDuplicateNames,
SchemaGenerationContext generationContext) |
default void |
SchemaDefinitionNamingStrategy.adjustDuplicateNames(Map<DefinitionKey,String> subschemasWithDuplicateNames,
SchemaGenerationContext generationContext)
Adjust the names/keys in the "definitions"/"$defs" for the given definition references that have the same names (according to
SchemaDefinitionNamingStrategy.getDefinitionNameForKey(DefinitionKey, SchemaGenerationContext) ) to ensure their uniqueness. |
Copyright © 2022 VicTools. All rights reserved.