Skip to content

Commit

Permalink
Merge pull request #733 from eclipse-tractusx/update_metadata_doc
Browse files Browse the repository at this point in the history
docs: add OpenAPI spec section description to metadata file
  • Loading branch information
tomaszbarwicki authored Jul 4, 2024
2 parents 57d43f3 + 0092c22 commit b7c006b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/metadata_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ skipReleaseChecks:
- "path/to/Dockerfile/only/used/in/testing-pipeline/Dockerfile.ui-tests"
```

## OpenAPI Specification

It is possible and highly recommended to list OpenAPI specifications related to your product in the respective section `openApiSpecs` of metadata file as in the example below:

```yaml
openApiSpecs:
- "https://raw.githubusercontent.com/eclipse-tractus/<your-product-repo>/product_version_openapi.yaml"
```

Provided specifications are used by automation to generate and publish Swagger UI documentations.

## Full example

Expand All @@ -86,5 +96,7 @@ repositories:
skipReleaseChecks:
alignedBaseImage:
- "/path/to/non-published/Dockerfile"
openApiSpecs:
- "https://raw.githubusercontent.com/eclipse-tractus/<your-product-repo>/product_version_openapi.yaml"
```

0 comments on commit b7c006b

Please sign in to comment.