File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1519,6 +1519,8 @@ type Schema struct {
15191519 MaxProps *uint64 `json:"maxProperties,omitempty" yaml:"maxProperties,omitempty"`
15201520 AdditionalProperties AdditionalProperties `json:"additionalProperties,omitempty" yaml:"additionalProperties,omitempty"`
15211521 Discriminator *Discriminator `json:"discriminator,omitempty" yaml:"discriminator,omitempty"`
1522+
1523+ // Has unexported fields.
15221524}
15231525 Schema is specified by OpenAPI/Swagger 3.0 standard. See
15241526 https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#schema-object
@@ -1580,6 +1582,13 @@ func (schema Schema) MarshalYAML() (any, error)
15801582
15811583func (schema *Schema) NewRef() *SchemaRef
15821584
1585+ func (schema Schema) OrderedPropertyKeys() []string
1586+ OrderedPropertyKeys returns the keys of the properties in the order they
1587+ were defined. This is useful for generating code that needs to iterate over
1588+ the properties in a consistent order. If the keys could not be extracted
1589+ for some reason, then this method automatically sorts the keys to be
1590+ deterministic.
1591+
15831592func (schema *Schema) PermitsNull() bool
15841593
15851594func (schema *Schema) UnmarshalJSON(data []byte) error
You can’t perform that action at this time.
0 commit comments