Skip to content

Commit

Permalink
Merge pull request #945 from tdakkota/fix/allow-xml-in-schemas
Browse files Browse the repository at this point in the history
fix(jsonschema): allow `xml` property
  • Loading branch information
ernado authored Jun 10, 2023
2 parents 7d03db1 + 1cbd2e7 commit c9e562e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jsonschema/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,12 @@ func (p *Parser) parseSchema(schema *RawSchema, ctx *jsonpointer.ResolveCtx, hoo
"patternProperties": {},
"minProperties": {},
"maxProperties": {},
"xml": {},
},
"array": {
"items": {},
"maxItems": {},
"minItems": {},
"uniqueItems": {},
"xml": {},
},
"string": {
"maxLength": {},
Expand Down Expand Up @@ -347,7 +345,7 @@ func (p *Parser) parseSchema(schema *RawSchema, ctx *jsonpointer.ResolveCtx, hoo
"type", "enum", "nullable", "format", "default",
"oneOf", "anyOf", "allOf", "discriminator",
"description", "example", "examples", "deprecated",
"additionalProperties",
"additionalProperties", "xml",
} {
fset[f] = struct{}{}
}
Expand Down

0 comments on commit c9e562e

Please sign in to comment.