Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all articles
Browse latest Browse all 1523

Should we use 'size' or 'length' in the JSON schemas that we import?

$
0
0

@aurerua wrote:

When I upload a JSON schema in Dreamfactory under the 'Schema' tab, an 'Todo' example is provided.

In this example a field called 'name' specifies this:"size": 80

In the wiki an attribute 'length' is presented instead and 'size' isn't mentioned at all. (http://wiki.dreamfactory.com/DreamFactory/Features/Database/Schema)

I have tried the Upload JSON Tool with both 'length' and 'size', and it seems to be equivalent.

I guess it would be nice to mention it in the docs, somehow. Or to use 'length' instead in the Upload JSON Tool for the sake of consistency.

I am new to Dreamfactory so I apologise in case I missed something.

Cheers

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 1523

Trending Articles