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

Non valid behavior for attribute - key: value (object) #318

Closed
klokane opened this issue May 11, 2016 · 1 comment
Closed

Non valid behavior for attribute - key: value (object) #318

klokane opened this issue May 11, 2016 · 1 comment

Comments

@klokane
Copy link
Contributor

klokane commented May 11, 2016

For following blueprint

# GET /
- Response 200 (application/json)
    - Attribute (A)

# Data Structures

## A
- myObject: abc (object)

I will receive message

warning: (1)  unable to render JSON/JSONSchema. Invalid member type of object in MSON definition :11:32

Expected behavior is report invalid syntax for definition - myObject: abc (object)

@w-vi
Copy link
Contributor

w-vi commented May 13, 2016

This I think requires to have semantical check phase in drafter, as this is syntactically correct but because it is an object it doesn't make sense.

klokane pushed a commit that referenced this issue May 19, 2016
warn on property of type `object` with string value definition e.g:
- key: value (object)
klokane pushed a commit that referenced this issue May 19, 2016
warn on property of type `object` with string value definition e.g:
- key: value (object)
klokane pushed a commit that referenced this issue May 23, 2016
@kylef kylef mentioned this issue Jun 30, 2016
kylef pushed a commit that referenced this issue Jul 7, 2017
This test is required by Pavan to fix issue #318 in drafter
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants