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

fix: Update blueprint request body schema should not specified 'required' #71

Merged
merged 3 commits into from
Jun 5, 2020

Conversation

danielsharvey
Copy link
Collaborator

Sails Models include specification of required property for attributes. This should be enforced/specified for create blueprints but NOT update blueprints.

This change adds two variant schemas for each model:

  • {modelIdentity} - variant containing required
  • {modelIdentity}-without-required-constraint - used for updates

theoomoregbee
theoomoregbee previously approved these changes May 30, 2020
Copy link
Owner

@theoomoregbee theoomoregbee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danielsharvey danielsharvey force-pushed the fix-update-schema branch 2 times, most recently from 54b550b to 4ced158 Compare June 1, 2020 13:49
@theoomoregbee theoomoregbee self-requested a review June 2, 2020 00:23
@theoomoregbee theoomoregbee dismissed their stale review June 2, 2020 00:23

wait for #67 to be merged before merging this

Base automatically changed from refactor-parsing to master June 4, 2020 22:18
@theoomoregbee
Copy link
Owner

@danielsharvey this should be good to go in too after resolving conflicts

Sails Models include specification of `required` property for
attributes. This should be enforced/specified for create blueprints
but **NOT** update blueprints.

This change adds two variant schemas for each model:
- '{modelIdentity}' - variant containing `required`
- '{modelIdentity}-without-required-constraint' - used for updates
@danielsharvey danielsharvey merged commit f49fab3 into master Jun 5, 2020
@theoomoregbee
Copy link
Owner

🎉 This PR is included in version 3.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@danielsharvey danielsharvey deleted the fix-update-schema branch June 5, 2020 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants