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

Fix length validations to count the length of the string using by utf8.RuneCountInString(). #740

Merged
merged 4 commits into from
Aug 29, 2016

Conversation

ikawaha
Copy link
Contributor

@ikawaha ikawaha commented Aug 27, 2016

see #739

@raphael
Copy link
Member

raphael commented Aug 27, 2016

Makes sense, thank you! Do you think you could add a test as well? Thanks!

@ikawaha
Copy link
Contributor Author

ikawaha commented Aug 28, 2016

Thanks! I will try to add some test.

@ikawaha ikawaha changed the title Fix length validations to count the length of the string using by utf8.RuneCountInString(). [WIP] Fix length validations to count the length of the string using by utf8.RuneCountInString(). Aug 28, 2016
@ikawaha ikawaha changed the title [WIP] Fix length validations to count the length of the string using by utf8.RuneCountInString(). Fix length validations to count the length of the string using by utf8.RuneCountInString(). Aug 28, 2016
@raphael
Copy link
Member

raphael commented Aug 29, 2016

Great, thank you!

@raphael raphael merged commit cb22ccb into goadesign:master Aug 29, 2016
ikawaha added a commit to ikawaha/goa that referenced this pull request Dec 13, 2016
…8.RuneCountInString(). (goadesign#740)

* Fix length validations to count the length of the string using by utf8.RuneCountInString().

* Add SimpleImport to MediaType and UserMediaType.

* Fix generation codes of InvalidLengthError

* Add a length validation test for string type
raphael pushed a commit that referenced this pull request Dec 13, 2016
…i-byte UTF-8 characters. (#962)

* Fix length validations to count the length of the string using by utf8.RuneCountInString(). (#740)

* Fix length validations to count the length of the string using by utf8.RuneCountInString().

* Add SimpleImport to MediaType and UserMediaType.

* Fix generation codes of InvalidLengthError

* Add a length validation test for string type

* Use att.Type.Kind() == design.StringKind instead of att.Type.Name() == "string"
@ikawaha ikawaha deleted the fix/length_validations_20160827 branch November 21, 2019 00:09
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.

2 participants