Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _includes/extension-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
### Schema

```yaml
{{page.schema}}
{{page.schema|jsonify}}
```

### Example
Expand Down
22 changes: 22 additions & 0 deletions registries/_extension/x-oai-traits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
owner: ralfhandl
issue:
description: Identify in an OpenAPI Description where Overlay updates should be applied.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this captures what we're trying to say here. I think we are mostly using the trait to give something for a target expression to aim for - it's not about what's applied

schema:
type: array
items:
type: string
layout: default
---

{% capture summary %}
The `x-oai-traits` extension is used to identify places in an OpenAPI Description where Overlay updates should be applied. Its value is an array of strings, each string identifying a feature that an Overlay should apply.
{% endcapture %}

{% capture example %}
See:

* [Traits Example in Overlay Specification](https://spec.openapis.org/overlay/v1.0.0.html#traits-example)
{% endcapture %}

{% include extension-entry.md summary=summary example=example %}