danielgtaylor / aglio

An API Blueprint renderer with theme support that outputs static HTML
4.75k stars 481 forks source link

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

Open anandchida opened 8 years ago

anandchida commented 8 years ago

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]

kylef commented 8 years ago

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