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

Make sure properties get overridden successfully #44

Closed
pksunkara opened this issue Jun 11, 2015 · 3 comments
Closed

Make sure properties get overridden successfully #44

pksunkara opened this issue Jun 11, 2015 · 3 comments
Labels

Comments

@pksunkara
Copy link
Contributor

Using the current boutique.js, when we are expanding MSON of the following blueprint, the properties of an object, doesn't get overridden correctly and contains duplicates.

FORMAT: 1A
HOST: http://parametrizedmson.apiblueprint.org/

# Testing parametrized MSON

Just testing parametrized MSON.

# Resource A [/a]
## Create [GET]
+ request (application/json)
  + attributes (A)

+ response 201

+ request (application/json)
  + attributes (A)
      + a2: 42

+ response 400



# Data Structures
## A (object)
+ a1: 1
+ a2: 2

The rendered JSON should be

{
  "a1": "1",
  "a2": "42"
}

And the MSON table should be the following

Name Type Required Description Value
a1 optional 1
a2 optional 2

The MSON table is currently the following

Name Type Required Description Value
a2 optional 42
a1 optional 1
a2 optional 2
@pksunkara
Copy link
Contributor Author

Related to apiaryio/mson#28

@pksunkara
Copy link
Contributor Author

The rendered JSON is fixed now in master branch.

@pksunkara
Copy link
Contributor Author

The actual display of attributes will be tackled in the now infamous apiaryio/api-blueprint#191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant