Skip to content

Commit

Permalink
Added openapi 3.1 null type
Browse files Browse the repository at this point in the history
  • Loading branch information
inf0serj authored and daveshanley committed Jan 23, 2024
1 parent ff22a46 commit fadb7ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/openapi/schema_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func (st SchemaTypeCheck) RunRule(_ []*yaml.Node, context model.RuleFunctionCont
case "object":
errs := st.validateObject(schema, &context)
results = append(results, errs...)
case "null":
default:
result := model.RuleFunctionResult{
Message: fmt.Sprintf("unknown schema type: `%s`", t),
Expand Down

0 comments on commit fadb7ee

Please sign in to comment.