This adds support for the x-rust-type extension. When we see this extension in types we can (depending on the configuration settings) try to use the type from the particular crate rather than generating the type. This is particularly useful for types with any of the following properties:
Structure that's not well represented in JSON Schema such as an IP subnet that has distinct components of an IP address and netmask prefix, but that is typically represented simply as a string with a (complex) pattern regex.
Mechanisms that are missed in a generated type. Consider e.g. a type representing a number of bytes that benefits from constructors and accessors aware of IEC prefixes.
Common, atomic types along the lines of UUIDs or dates (both of which are represented with formats... I'm saying like those)
This adds support for the
x-rust-type
extension. When we see this extension in types we can (depending on the configuration settings) try to use the type from the particular crate rather than generating the type. This is particularly useful for types with any of the following properties:pattern
regex.format
s... I'm saying like those)