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

mixin base type should be the same as parent base type error #251

Open
anandchida opened this issue Apr 15, 2016 · 1 comment
Open

mixin base type should be the same as parent base type error #251

anandchida opened this issue Apr 15, 2016 · 1 comment

Comments

@anandchida
Copy link

anandchida commented Apr 15, 2016

I'm exploring API blueprint + MSON with an example. I'm getting a error although the html is generated is incomplete and here are the details

[test@localhost api-blueprint]$ aglio -v
aglio 2.2.0
olio 1.6.2

Getting following error on
$ aglio -i user.apib -o user.html

Line 24: mixin base type should be the same as parent base type. objects should contain object mixins. arrays should contain array mixins (warning code 8)

Here is the blueprint

FORMAT: 1A
HOST: https://api.test.com

API for User Registration

This is a learning MSON and API documentation

Group users

User Collection [/users]

Get all users [GET /users]

  • Response 200 (application/json)
    • Attributes
      • users (array[User])

Get Individual User [GET /users/{id}]

  • Parameter
    • id: '1' - ID of the user
  • Response 200 (application/json)
    • Attributes
      • Include User
      • messages (array[Message])

Data structure

User (object)

  • id: '1' (number) - ID of the user
  • firstName: 'First Name' (string) - First Name of the user
  • lastName: 'Last Name' (string) - Last Name of the user

Message (object)

  • id: '1' (number) - ID of the message
  • data: 'This is a notification message' (string) - Message Data
@kylef
Copy link
Collaborator

kylef commented Apr 15, 2016

I think this is a parser bug, in particular apiaryio/drafter#243. This will be released in the next update to Protagonist and Drafter.

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

2 participants