-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong expanded refract for the circular enums #590
Comments
Drafter 5.0.0 produces the following output: {
"element": "dataStructure",
"content": {
"element": "array",
"content": [
{
"element": "A"
},
{
"element": "B"
}
]
}
} Where A is defined as: {
"element": "dataStructure",
"content": {
"element": "enum",
"meta": {
"id": {
"element": "string",
"content": "A"
}
},
"attributes": {
"enumerations": {
"element": "array",
"content": [
{
"element": "B"
},
{
"element": "array",
"content": [
{
"element": "B"
}
]
}
]
}
}
}
} B is defined as: {
"element": "dataStructure",
"content": {
"element": "enum",
"meta": {
"id": {
"element": "string",
"content": "B"
}
},
"attributes": {
"enumerations": {
"element": "array",
"content": [
{
"element": "A"
},
{
"element": "array",
"content": [
{
"element": "A"
}
]
}
]
}
}
}
} Which looks correct, expansion must not be working for circular nature of this API Blueprint. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The generated expanded refract looks wrong.
The text was updated successfully, but these errors were encountered: