question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: The swagger schema have errors and warnings

See original GitHub issue

What is your BTCPay version?

1.6.12

How did you deploy BTCPay Server?

docker

What happened?

Errors on the swagger schema reported by user.

Errors: 
        -paths.'/api/v1/stores/{storeId}/custodian-accounts'. Declared path parameter storeId needs to be defined as a path parameter in path or operation level
        -attribute components.schemas.CustodianData.items is missing
        -paths.'/api/v1/stores/{storeId}/custodian-accounts/{accountId}'. Declared path parameter accountId needs to be defined as a path parameter in path or operation level
        -paths.'/api/v1/stores/{storeId}/users'. Declared path parameter storeId needs to be defined as a path parameter in path or operation level
        -paths.'/api/v1/stores/{storeId}/custodian-accounts/{accountId}'. Declared path parameter storeId needs to be defined as a path parameter in path or operation level
Warnings: 
        -paths.'/api/v1/stores/{storeId}/custodian-accounts'. Declared path parameter storeId needs to be defined as a path parameter in path or operation level
        -attribute components.schemas.CustodianData.items is missing
        -paths.'/api/v1/stores/{storeId}/custodian-accounts/{accountId}'. Declared path parameter accountId needs to be defined as a path parameter in path or operation level
        -paths.'/api/v1/stores/{storeId}/users'. Declared path parameter storeId needs to be defined as a path parameter in path or operation level
        -paths.'/api/v1/stores/{storeId}/custodian-accounts/{accountId}'. Declared path parameter storeId needs to be defined as a path parameter in path or operation level

this is using maven’s plugin openapi-generator-maven-plugin

How did you encounter this bug?

using https://docs.btcpayserver.org/API/Greenfield/v1/swagger.json

Relevant log output

No response

What browser do you use?

No response

Additional information

No response

Are you sure this is a bug report?

  • I confirm this is a bug report

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
woutersamaeycommented, Oct 25, 2022

I guess I will be implementing the API myself.

This is what we have decided to do as well for our PHP library.

1reaction
NicolasDoriercommented, Oct 24, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing warnings and errors · Issue #1355 · swagger-api ...
In my spec file I wrongly wrongly defined a parameter as "in: query" instead of "in: path". Swagger Editor v2.0 did not give...
Read more >
Swagger file with warning
1 Answer 1 · In the beginning, change 'swagger' to "swagger" . JSON requires double quotes around strings. · Remove extra comma at...
Read more >
Swagger schema validation failed
trying to import a URL and got this error: Swagger schema validation failed. Data does not match any schemas from 'anyOf' at ...
Read more >
Fix Swagger Validator errors in Power Platform connectors
Your swagger has a parameter definition that is incorrectly using '$ref' to point to another definition. ParamtersWithSameNameMustHave
Read more >
Describing Responses
For example, you can describe the conditions for error responses. ... In this case, define the response schema with type: file and specify...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found