Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from thedadams/allow-additional-cycles
Browse files Browse the repository at this point in the history
Allow additional fields when a schema cycle is detected
  • Loading branch information
thedadams authored Jun 19, 2023
2 parents 39a4707 + 409a274 commit 746dc7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/schemas/openapi/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ func schemaToProps(schema *types.Schema, schemas *types.Schemas, inflight map[st
}

if inflight[schema.ID] {
jsp.AdditionalProperties = &v1.JSONSchemaPropsOrBool{
Allows: true,
}
return jsp, nil
}

Expand Down

0 comments on commit 746dc7c

Please sign in to comment.