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

Add array size validation to OpenAPI templates #166

Open
davidjwbbc opened this issue Sep 26, 2024 · 0 comments
Open

Add array size validation to OpenAPI templates #166

davidjwbbc opened this issue Sep 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@davidjwbbc
Copy link
Contributor

Introduction

Array size limits can be specified for an API in OpenAPI 3.0 using the optional minItems and maxItems qualifiers when specifying arrays. The 3GPP OpenAPI YAML in the 5G_APIs repository uses both minItems and maxItems, although the 5GMS specific parts only use minItems. At present, the validation performed in the 5GMS AF by the OpenAPI C templates does not validation the size of arrays.

Description

  1. Update the commit for rt-common-shared so that it includes the OpenAPI C templates to provide extra validation for array sizes (Add array size validation to the openapi-generator C templates rt-common-shared#40).
  2. Confirm validation occurs in the 5GMS AF for API object instances where array limits are set in 5GMS OpenAPI interfaces.
@davidjwbbc davidjwbbc added the enhancement New feature or request label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant