Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request Body boolean or datetime. And support for deep structures. #37

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

a-chacon
Copy link
Owner

@a-chacon a-chacon commented Aug 23, 2024

This PR introduce a change in the way the response and request body tags are used.

Before:

# @request_body The user to be created [Hash] {user: {name: String, age: Integer, password: String}}

Now:

# @request_body The user to be created [!Hash{user: {name: !String, age: Integer, password: String}}]

Notice that you can indicate when a field or structure is required by put a ! before. And all is described inside the [ ] .

This add support for deep structures and fixes Boolean, Date and DateTime fields.

…arameters and responses but changes the syntax used. This fix date and date time support too.
@a-chacon a-chacon linked an issue Aug 23, 2024 that may be closed by this pull request
@a-chacon a-chacon linked an issue Aug 23, 2024 that may be closed by this pull request
@a-chacon a-chacon merged commit ed5eef5 into main Aug 23, 2024
4 checks passed
@a-chacon a-chacon deleted the 35-request-body-boolean-or-datetime branch August 23, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request Body Boolean or Datetime ? schema response ?
1 participant