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

Constraint::check() uses wrong indefinite article in error message to express the type constraint #104

Merged
merged 2 commits into from
Aug 25, 2014

Conversation

hakre
Copy link
Contributor

@hakre hakre commented Jun 9, 2014

While making use of composer's validation method (which uses your library), it came to my attention that the error messages given are wrong for the indefinite article.
E.g. it says:

NULL value found, but a integer is required

Which is wrong because the wrong indefinite article is used (compare: When to Say "a" or "an" etc.).

The correct form is:

NULL value found, but an integer is required [highlight by me]

@hakre
Copy link
Contributor Author

hakre commented Jun 9, 2014

A related changeset in composer is composer/composer#1616

hakre added a commit to hakre/json-schema that referenced this pull request Jun 9, 2014
…cle in ...

...error message to express the type constraint

Type::check() used a wrong indefinte article on occasion.

This has been fixed by providing a map of types and their wording so that
the correct indefinite article is used, always.

- jsonrainbow#104
- composer/composer#1616
…cle in ...

...error message to express the type constraint

Type::check() used a wrong indefinte article on occasion.

This has been fixed by providing a map of types and their wording so that
the correct indefinite article is used, always.

- jsonrainbow#104
- composer/composer#1616
@hakre
Copy link
Contributor Author

hakre commented Jul 24, 2014

@justinrainbow have you already seen this? are there any questions? some feedback would be nice.

@justinrainbow
Copy link
Collaborator

Thanks for this change and clearing up the error messages. This will be included in the next release.

justinrainbow added a commit that referenced this pull request Aug 25, 2014
Constraint::check() uses wrong indefinite article in error message to express the type constraint
@justinrainbow justinrainbow merged commit d98033f into jsonrainbow:master Aug 25, 2014
@hakre hakre deleted the patch-1 branch August 25, 2014 08:06
hakre added a commit to hakre/json-schema that referenced this pull request Mar 26, 2015
…cle in ...

...error message to express the type constraint

Type::check() used a wrong indefinte article on occasion.

This has been fixed by providing a map of types and their wording so that
the correct indefinite article is used, always.

- jsonrainbow#104
- composer/composer#1616
hakre pushed a commit to hakre/json-schema that referenced this pull request Mar 26, 2015
Constraint::check() uses wrong indefinite article in error message to express the type constraint
siwinski pushed a commit to siwinski/json-schema that referenced this pull request Apr 20, 2015
…cle in ...

...error message to express the type constraint

Type::check() used a wrong indefinte article on occasion.

This has been fixed by providing a map of types and their wording so that
the correct indefinite article is used, always.

- jsonrainbow#104
- composer/composer#1616
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