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

Unclear error message when yaml spec is wrong #130

Open
mikesol opened this issue Aug 6, 2019 · 1 comment
Open

Unclear error message when yaml spec is wrong #130

mikesol opened this issue Aug 6, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Issue needs help

Comments

@mikesol
Copy link

mikesol commented Aug 6, 2019

It is really easy to write subtly wrong YAML and unmock will fail without any warning.

servers:
- https://example.prismic.io

Should be

servers:
- url: https://example.prismic.io

But unmock does not catch this and as a result, the tests fail later down the line with a cryptic error message.

@ksaaskil ksaaskil added enhancement New feature or request good first issue Good for newcomers labels Aug 9, 2019
@idantene
Copy link
Contributor

Do we want to include this as unmock's responsibility, or loas?
I think verification of service specification should be external to unmock. Ideally as a final step in loas, to verify the output is valid OAS.

@carolstran carolstran added the help wanted Issue needs help label Dec 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Issue needs help
Projects
None yet
Development

No branches or pull requests

4 participants