Skip to content

Commit

Permalink
revert comments
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenharrison committed Aug 25, 2024
1 parent 450e4d0 commit 6b52b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openapi3/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ func (schema *Schema) UnmarshalJSON(data []byte) error {
*schema = Schema(x)

if schema.Format == "date" {
// This is a fix for: https://github.com/oasdiff/kin-openapi/issues/697
// This is a fix for: https://github.com/getkin/kin-openapi/issues/697
if eg, ok := schema.Example.(string); ok {
schema.Example = strings.TrimSuffix(eg, "T00:00:00Z")
}
Expand Down Expand Up @@ -1205,7 +1205,7 @@ func (schema *Schema) visitJSON(settings *schemaValidationSettings, value any) (
return schema.visitJSONArray(settings, value)
case map[string]any:
return schema.visitJSONObject(settings, value)
case map[any]any: // for YAML cf. issue https://github.com/oasdiff/kin-openapi/issues/444
case map[any]any: // for YAML cf. issue https://github.com/getkin/kin-openapi/issues/444
values := make(map[string]any, len(value))
for key, v := range value {
if k, ok := key.(string); ok {
Expand Down

0 comments on commit 6b52b19

Please sign in to comment.