Bug 38262: Add extended attributes support to vendors API specification

Updates the OpenAPI definitions to support additional fields on vendor
records.

This adds:
- extended_attributes array field to vendor schema definition
- _strings field for localized/computed string representations
- extended_attributes and +strings to available embed options

These changes allow the API to expose and accept additional field data
when retrieving or modifying vendor records via the REST API.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Michaela <michaela.sieber@kit.edu>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Matt Blenkinsop 2024-10-29 17:11:34 +00:00 committed by Lucas Gass
parent 05423a313b
commit ee6f5a3ee9
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
3 changed files with 15 additions and 0 deletions

View File

@ -156,6 +156,16 @@ properties:
- integer
- "null"
description: Number of linked invoices
extended_attributes:
description: Related additional field values
type:
- array
items:
$ref: extended_attribute_value.yaml
_strings:
type:
- object
- "null"
additionalProperties: false
required:
- name

View File

@ -38,6 +38,8 @@
- baskets+count
- subscriptions+count
- invoices+count
- extended_attributes
- +strings
collectionFormat: csv
responses:
"200":
@ -156,6 +158,8 @@
- interfaces
- contacts
- contracts
- extended_attributes
- +strings
collectionFormat: csv
produces:
- application/json

View File

@ -23,6 +23,7 @@
- package
- order
- subscription
- vendor
- $ref: "../swagger.yaml#/parameters/match"
- $ref: "../swagger.yaml#/parameters/order_by"
- $ref: "../swagger.yaml#/parameters/page"