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

Added examples #8

Merged
merged 3 commits into from
Feb 1, 2020
Merged

Conversation

ruudboon
Copy link
Contributor

Added some examples and link to https://json-schema.org/
Didn't implement passing a file reference.
I think supplying a string could be really helpful so you can create simple check's inline like I showed in the examples.
If supplying is required I would like to suggest a wrapper that allows a filename as parameter, will convert it and call this method.

@Naktibalda
Copy link
Member

We have multiple method for inline checks already,
inline schema is not really a schema, because it obviously isn't used by application.

Please add wrapper method.

Added `seeResponseIsValidOnJsonSchemaString` for checks based on string
@ruudboon
Copy link
Contributor Author

@Naktibalda Added it.

@ruudboon
Copy link
Contributor Author

Do you have moment to review this? @DavertMik

Copy link
Member

@Naktibalda Naktibalda left a comment

Choose a reason for hiding this comment

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

Much better now but I have one last issue with it.

src/Codeception/Module/REST.php Outdated Show resolved Hide resolved
@Naktibalda Naktibalda merged commit c86417a into Codeception:master Feb 1, 2020
@ruudboon ruudboon deleted the implement-json-schema branch February 1, 2020 21:53
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