Apicurio-studio: Warning "Schema items must be present only for schemas of type 'array' " is promoted when adding a parameter through UI -- openapi: 3.0.2

Created on 29 May 2019  Â·  15Comments  Â·  Source: Apicurio/apicurio-studio

"Schema items must be present only for schemas of type 'array' " is promoted when adding path parameters, query parameters or header parameters through UI. The screenshot of warning and code is as follows:
paramsError

The warning will disappear when updating anything in Open API source code and save it, such as description.

bug

All 15 comments

I see this all the time as well. Let me know if you need a sample

A sample would be great, thanks.

Test API.yaml.zip

This is the smallest example I can make. Note that after exporting the file it no longer shows the error in the UI, but if I delete and re-add the response the error shows up again.
It also shows up if I mark anything as required.

Thanks.

I can not reproduce this with the latest version of Apicurio. Admittedly a large number of changes have been made to both editing and validation, so it is possible that this has simply been fixed.

It's also possible I'm simply missing something. I'm going to close this for now, but I would very much appreciate it if someone could re-open it if the next release of Apicurio (will be done this week) still exhibits this problem.

@EricWittmann What's the latest version? I'm on the site right now and I'm experiencing this issue still.

The online version is not the latest. That said if you could screencast
yourself reproducing it that would be super helpful.

On Wed, Jun 19, 2019, 1:17 PM Brandon J McKay notifications@github.com
wrote:

@EricWittmann https://github.com/EricWittmann What's the latest
version? I'm on the site right now and I'm experiencing this issue still.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Apicurio/apicurio-studio/issues/785?email_source=notifications&email_token=AAONTD2V4IXQMP7E64L5Q4LP3JS33A5CNFSM4HQKR7B2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYCRYXA#issuecomment-503651420,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAONTDYBAY2LE3PLQ6MK6XDP3JS33ANCNFSM4HQKR7BQ
.

Any specific steps do you want me to record?

No. Anything you can do to reproduce it would be awesome. Especially from
an empty document.

On Wed, Jun 19, 2019, 1:37 PM Brandon J McKay notifications@github.com
wrote:

Any specific steps do you want me to record?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Apicurio/apicurio-studio/issues/785?email_source=notifications&email_token=AAONTD566XTSRG4BMTQF74LP3JVDZA5CNFSM4HQKR7B2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYCTPYI#issuecomment-503658465,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAONTD4COR3AYVISLDEM35DP3JVDZANCNFSM4HQKR7BQ
.

apicurio-schemaerror-sm
I tried sharing this longer and in higher resolution, but that didn't work out for me. :/

Add the screencast to reproduce this issue for the online version.
array-error

Thanks!

OK I have now been able to reproduce this (thanks for the videos!) in the online version (which is older) but cannot reproduce this with the latest version on master. I'm going to leave this closed for now and will be doing a new release today or tomorrow (which will result in the online version being updated). So hopefully this will be resolved. The data modeling, validation, and editing commands have all been massively changed, so I'm guessing we'll see other problems instead. :)

Thank, I will try the new version after it is released.

The new version has been released and is available at https://studio.apicur.io if you'd like to give it a try.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

0x218 picture 0x218  Â·  5Comments

jonathanvila picture jonathanvila  Â·  4Comments

yuanhuiliu picture yuanhuiliu  Â·  4Comments

patrickceg picture patrickceg  Â·  4Comments

ablaas-ald picture ablaas-ald  Â·  4Comments