Skip to main content

This project merges multiple OpenAPI specifications extensions into a single core specification for SKG IF.

Project description

OpenAPI merge spec

Specify what should be changed in/added to the SKG-IF OpenAPI YAML, which supports the core SKG-IF data model, for an extension. RThis document will use an example server extension.

Header

Identify the extension. Potentially specify which extension(s) it extends and should already have been merged in the core OpenAPI YAML.

extension: service
# depends-on: foo
# depends-on: bar
skg-if-api:

Add tags

Add one or more tags. Each tag key, e.g. tag-service, should be unique. The + prefix tells the merger to add the tag.

  +tag-service:
    name: Service
    description: Lorem ipsum dolor sit amet. 
  #+tag-another:

Add schemas

Add one or more schemas. Each schema key, e.g. path-service, should be unique. The + prefix tells the merger to add the schema.

  +path-service:
    '/services/{local_identifier}':
      get:
        tags:
            - Service
  ...
  +path-services:
    '/services':
      get:
        tags:
            - Service
  ...

Modify a schema

Modify an existing (core) schema. Add the ~ prefix to the key of the schema to modify. Then copy all the steps that are needed to get to where a field has to be added or modified. In the example below its up to properties, to which services is added indicated by the + prefix. To step into the right item of a list the right position can be achieved with empty - items. The ~enum showcases a modification of its value list, i.e. adding the portal value.

~schema-venue:
    Venue:
      allOf:
        -
        - type: object
          properties:
            type:
              ~enum: portal
            +services:
              type: array
              items:
                $ref: '#/components/schemas/Service'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ost_skg_if_api_tools-0.1.3.tar.gz (45.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ost_skg_if_api_tools-0.1.3-py3-none-any.whl (49.1 kB view details)

Uploaded Python 3

File details

Details for the file ost_skg_if_api_tools-0.1.3.tar.gz.

File metadata

  • Download URL: ost_skg_if_api_tools-0.1.3.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.13

File hashes

Hashes for ost_skg_if_api_tools-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fa8adb3dd3115b2ec75910ef8e16c2641e14607e991caeb92c3ed6b3661f17ae
MD5 872e308a9da0d65215004c3102e44567
BLAKE2b-256 f8bdb4133b80c1733b026809852f076e7b89287c0fcd966d67ca3a4c8de4a6a5

See more details on using hashes here.

File details

Details for the file ost_skg_if_api_tools-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ost_skg_if_api_tools-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 140b3535ad9071b5871b94d75534f260e34dafce6ac190bb944c162f70797a15
MD5 3a03a80e8cf35c1905911ab6decdcbce
BLAKE2b-256 ffa10ee8c85c47497b5d14bc1cfd316bbdc9cb04438ec59039338b0d9474513f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page