Api-blueprint: Null default value for attribute

Created on 14 Jul 2015  路  2Comments  路  Source: apiaryio/api-blueprint

How to define string attribute with null as default value?

I'm trying:

+ Attributes
   + prev: null (string) - Prev page url 

But apiary interprets it as "null", that's not null.

Question

Most helpful comment

That other conversation thread is very long. At the end they decided to allow (string, nullable) if a string might be null for example.

Adding this because this issue is the first Google result, should save someone some time.

All 2 comments

Please see (and feel free to chime in) to the discussion here https://github.com/apiaryio/mson/issues/26

That other conversation thread is very long. At the end they decided to allow (string, nullable) if a string might be null for example.

Adding this because this issue is the first Google result, should save someone some time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fh-thudson picture fh-thudson  路  3Comments

fgblomqvist picture fgblomqvist  路  3Comments

agougousis picture agougousis  路  8Comments

teja5429 picture teja5429  路  9Comments

alronlam picture alronlam  路  4Comments