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

Scaffold generates schema with NAME definition but don't generate that attribute on migrations/serializers #192

Open
cefigueiredo opened this issue Jul 22, 2015 · 0 comments

Comments

@cefigueiredo
Copy link

The main purpose here is discuss if a name definition should be really presumed to exist on migrations/serializers/schema template.

Today, when we use scaffold to generate an endpoint/model/schema/serializer its schema presumes that an attribute name should be serialized, but that attribute is not included on the migration neither on the serializer.
So, when we run the acceptance test, an InvalidResponse error is raised with the message #: failed schema #/definitions/[schema_name]: "name" wasn't supplied.

The first question is: should a name attribute really be expected by the schema?

The second question is: if the schema expect the existence of a name attribute, why it is not included on the template for migrations and serializer?

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

No branches or pull requests

1 participant