Optional
additionalOptional
additionalOptional
contentOptional
defaultOptional
deprecatedWhether the type is deprecated or not.
Optional
descriptionDetailed description of the schema.
Optional
discriminatorOptional
enumOptional
exampleExample value.
Optional
examplesList of example values as key-value pairs.
Optional
exclusiveOptional
exclusiveOptional
formatOptional
itemsOptional
maximumOptional
maxOptional
maxOptional
maxOptional
minimumOptional
minOptional
minOptional
minOptional
multipleOptional
nullableOptional
patternOptional
prefixOptional
propertiesOptional
requiredOptional
titleTitle of the schema.
Optional
unique
Common attributes for JSON schema types.
IJsonSchemaAttribute
is a common interface for all JSON schema types supported in here@samchon/openapi
. Here is the list of affected JSON schema types in@samchon/openapi
, and you can extend the interface by declaring module augmentation.For example, if you extend the
IJsonSchemaAttribute
interface like below, every JSON schema types in@samchon/openapi
will have a new custom attributex-wrtn-placeholder
.Also, if you augment the nested type like
IJsonSchemaAttribute.IString
, you can add the custom attribute to every string types in the JSON schema. In the below example case, every string types will have a new custom attributex-wrtn-secret-key
.Author
Jeongho Nam - https://github.com/samchon