Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

invalid value format for 'number' type #81

Open
basickarl opened this issue Feb 7, 2017 · 3 comments
Open

invalid value format for 'number' type #81

basickarl opened this issue Feb 7, 2017 · 3 comments

Comments

@basickarl
Copy link

I'm getting the error:

[BS] File changed: .tmp/blueprint.apib
>> Line 0: invalid value format for 'number' type. please check mson specification for valid format (warning code 4)
>> Context

With the following markdown:

+ Response 200 (application/vnd.api+json)

    Received on successful update or insert.

    + Attributes
        + posts (array)
            + name: Apiary
            + founded: 2011 (number) - The year in which the company was founded
@Chrumo
Copy link

Chrumo commented Apr 3, 2017

+1

@kylef
Copy link
Member

kylef commented Apr 3, 2017

The error here is a little mis-leading as the parser has struggled to understand the blueprint.

The specific data structure you have here is a key-value property directly under an array. This would could be compared to something like {"posts": ["name": "Apiary", "founded": 2011]} in JSON, which obviously doesn't make any sense.

I think you instead mean the following:

+ Response 200 (application/vnd.api+json)

    Received on successful update or insert.

    + Attributes
        + posts (array)
            + (object)
                + name: Apiary
                + founded: 2011 (number) - The year in which the company was founded

@aiyanbo
Copy link

aiyanbo commented Apr 24, 2017

+1

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

No branches or pull requests

4 participants