Skip to content

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

Description

@cefigueiredo

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions