-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add required to responseField tag and append the required field…
…s to generateResponseContentSpec for object types (#814) * feat: add required to responseField tag and append the required fields to generateResponseContentSpec for object types * fix: set required key only if there are required fields in the response type * fix: add space when readding required to description after recognizing required is part of the description * refactor: make linter happy * fix: mark required field as optional inside the format * fix: only add top-level properties of object as required * fix: add fields as required given nested path and add test * test: add test for required parameter of response field attribute --------- Co-authored-by: daniel <daniel@softwerft.com> Co-authored-by: sotdan <sotdan7@gmail.com>
- Loading branch information
1 parent
e35e6da
commit a6aee1d
Showing
5 changed files
with
84 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters