Skip to content

Commit

Permalink
some samples
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor committed Oct 28, 2024
1 parent 39e5180 commit bb5b938
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions aep/general/0124/aep.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ associated with other resources through other fields on the resource.

{% tab oas %}

{% sample 'multiple_many_to_one.oas.yaml', 'Book' %}
{% sample 'multiple_many_to_one.oas.yaml', '$.components.schema.Book' %}


{% endtabs %}

Expand Down Expand Up @@ -51,7 +52,7 @@ described for repeated fields in [arrays][/arrays].

{% tab oas %}

{% sample 'many_to_many_repeated.oas.yaml', 'Book' %}
{% sample 'many_to_many_repeated.oas.yaml', '$.components.schema.Book' %}

{% endtabs %}

Expand All @@ -68,7 +69,7 @@ relationship using a sub-resource with two one-to-many associations.

{% tab oas %}

{% sample 'many_to_many_subresource.oas.yaml', 'BookAuthor' %}
{% sample 'many_to_many_subresource.oas.yaml', '$.components.schema.BookAuthor' %}

{% endtabs %}

Expand Down Expand Up @@ -133,7 +134,7 @@ to define a view enum simply because another resource references it.

{% tab oas %}

{% sample 'embedded_resource.oas.yaml', 'Book' %}
{% sample 'embedded_resource.oas.yaml', '$.components.schema.Book' %}

{% endtabs %}

Expand Down
2 changes: 1 addition & 1 deletion aep/general/0126/aep.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ choice (although `google.protobuf.BoolValue` is also available).

{% tab oas %}

{% sample 'enum.oas.yaml', 'format' %}
{% sample 'enum.oas.yaml', '$.components.schema.Book.properties.format.enum' %}

- Enumerated fields **should** be strings.
- If the enum is optional, The `null` value **should** be used as the empty
Expand Down
6 changes: 3 additions & 3 deletions aep/general/0136/aep.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ apply consistently:

{% tab oas %}

{% sample 'library.oas.yaml', '/publishers/{publisherId}/books/{bookId}:archive' %}
{% sample 'library.oas.yaml', '$.paths.\/publishers\/{publisherId}\/books\/{bookId}:archive' %}

- The name of the RPC **should** be a verb followed by a noun.
- The name of the RPC **must not** contain prepositions ("for", "with",
Expand Down Expand Up @@ -86,7 +86,7 @@ While most custom methods operate on a single resource, some custom methods

{% tab oas %}

{% sample 'library.oas.yaml', '/publishers/{publisherId}/books:sort' %}
{% sample 'library.oas.yaml', '$.paths.\/publishers\/{publisherId}\/books:sort' %}

{% endtabs %}

Expand All @@ -106,7 +106,7 @@ permanent effect on data within the API.

{% tab oas %}

{% sample 'translate.oas.yaml', '/projects/{projectId}:translateText' %}
{% sample 'translate.oas.yaml', '$.paths.\/projects\/{projectId}:translateText' %}

{% endtabs %}

Expand Down

0 comments on commit bb5b938

Please sign in to comment.