Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Add typed attribute #398

Merged
merged 1 commit into from
Aug 4, 2016
Merged

Add typed attribute #398

merged 1 commit into from
Aug 4, 2016

Conversation

goganchic
Copy link
Contributor

Based on discussion in apiaryio/mson#66

@@ -181,6 +181,9 @@ namespace mson {
else if (attribute == "nullable") {
typeAttributes |= NullableTypeAttribute;
}
else if (attribute == "typed") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please name it fixed-type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -135,7 +135,8 @@ namespace mson {
FixedTypeAttribute = (1 << 2), // The type is fixed
SampleTypeAttribute = (1 << 3), // The type is a sample
DefaultTypeAttribute = (1 << 4), // The type is default
NullableTypeAttribute = (1 << 5) // The type is nullable
NullableTypeAttribute = (1 << 5), // The type is nullable
TypedTypeAttribute = (1 << 6) // This type works like fixed, but it is unheritable
Copy link
Contributor

Choose a reason for hiding this comment

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

We can do FixedTypeTypeAttribute.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@pksunkara
Copy link
Contributor

Only 1 comment, otherwise lgtm.

@pksunkara pksunkara merged commit f41c5b1 into apiaryio:master Aug 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants