Skip to content

Add array size validation to OpenAPI templates #166

@davidjwbbc

Description

@davidjwbbc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions