Skip to content
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

Generate body and schema for arrays #16

Merged
merged 2 commits into from Mar 30, 2015
Merged

Generate body and schema for arrays #16

merged 2 commits into from Mar 30, 2015

Conversation

pksunkara
Copy link
Contributor

This PR also updates the protagonist version to 0.19.0 pre-release

@pksunkara
Copy link
Contributor Author

@zdne Please review & merge.

@@ -219,7 +220,7 @@ class Drafter
rule[elementType].call rule, newNode if elementType in Object.keys(rule)

# Append resolved data structures
if elementType is 'dataStructure' and not deepEqual node, newNode
if parentElementType not in ['resource', 'blueprint'] and elementType is 'dataStructure' and not deepEqual node, newNode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: Pity CS can do this nicely but best to split this multiple condition to multiple lines to improve readability

zdne added a commit that referenced this pull request Mar 30, 2015
Generate body and schema for arrays
@zdne zdne merged commit b6f41c4 into master Mar 30, 2015
@zdne zdne deleted the pksunkara/array branch March 30, 2015 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants