OptionaldeprecatedWhether the type is deprecated or not.
OptionaldescriptionDetailed description of the schema.
OptionalexampleExample value.
OptionalexamplesList of example values as key-value pairs.
OptionalreadWhether the property is read-only.
OptionaltitleTitle of the schema.
OptionalwriteWhether the property is write-only.
Common attributes for JSON schema types.
IJsonSchemaAttributeis 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
IJsonSchemaAttributeinterface like below, every JSON schema types in@samchon/openapiwill 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