data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

[Bug]: Missing pagination property in dab.draft.schema.json

Open mart2n opened this issue 1 year ago • 1 comments

What happened?

I added the pagination section in the runtime section of the config file as following:

"pagination": { "max-page-size": -1, "default-page-size": 100 }

dab start works fine, but to generate the merged config file I use dab validate and this fails, because the "pagination" section is missing in the dab.draft.schema.json file

Version

1.1.7

What database are you using?

Azure SQL

What hosting model are you using?

Local (including CLI), Container Apps

Which API approach are you accessing DAB through?

GraphQL

Relevant log output

...
Error: > Total schema validation errors: 1
> NoAdditionalPropertiesAllowed: #/runtime.pagination at 41:17


Error: Config is invalid. Check above logs for details.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

mart2n avatar Aug 13 '24 09:08 mart2n

Thank you for reporting! We'll work on a fix for this.

seantleonard avatar Aug 13 '24 23:08 seantleonard