This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Can not use custom types in "One Of" #360
Labels
Comments
Note I've verified this bug with this minimal blueprint: # GET /ab
- response 200 (application/json)
- Attributes (A or B)
# Data Structures
## A or B
- One Of
- Properties
- text: A (string)
- somevalue (C)
- Properties
- text: B (string)
## C
- c1: C1 |
I think that problem in a drafter, not in a snowcrash. IsExpandableVisitor do not process options of select kind, so for select (One Of) element it always tells that object is not expandable. ExpandVisitor has no code to expand select element, so it rendered as is without any modifications. |
goganchic
added a commit
to goganchic/drafter
that referenced
this issue
Jul 16, 2016
goganchic
added a commit
to goganchic/drafter
that referenced
this issue
Jul 17, 2016
goganchic
added a commit
to goganchic/drafter
that referenced
this issue
Jul 17, 2016
goganchic
added a commit
to goganchic/drafter
that referenced
this issue
Jul 18, 2016
goganchic
added a commit
to goganchic/drafter
that referenced
this issue
Jul 18, 2016
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm describing map POI api. So I have api method /map_markers which returns an array of markers. Each marker can be a poi or a cluster. I use such api description
but if I use custom type in
One Of
section (not just a number or string) - json schema will be wrong:Json schema contains empty objects instead of custom types.
The text was updated successfully, but these errors were encountered: