File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1519,6 +1519,8 @@ type Schema struct {
1519
1519
MaxProps *uint64 `json:"maxProperties,omitempty" yaml:"maxProperties,omitempty"`
1520
1520
AdditionalProperties AdditionalProperties `json:"additionalProperties,omitempty" yaml:"additionalProperties,omitempty"`
1521
1521
Discriminator *Discriminator `json:"discriminator,omitempty" yaml:"discriminator,omitempty"`
1522
+
1523
+ // Has unexported fields.
1522
1524
}
1523
1525
Schema is specified by OpenAPI/Swagger 3.0 standard. See
1524
1526
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)
1580
1582
1581
1583
func (schema *Schema) NewRef() *SchemaRef
1582
1584
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
+
1583
1592
func (schema *Schema) PermitsNull() bool
1584
1593
1585
1594
func (schema *Schema) UnmarshalJSON(data []byte) error
You can’t perform that action at this time.
0 commit comments