| 1660 | class AnotherApi extends HttpApi.make("another").add(GroupsApi) {} |
| 1661 | |
| 1662 | class Api extends HttpApi.make("api") |
| 1663 | .addHttpApi(AnotherApi) |
| 1664 | .add(UsersApi.prefix("/users")) |
| 1665 | .add(TopLevelApi) |
| 1666 | .annotateMerge(OpenApi.annotations({ |
| 1667 | title: "API", |
| 1668 | summary: "test api summary", |
| 1669 | transform: (openApiSpec) => ({ |
| 1670 | ...openApiSpec, |
| 1671 | tags: [...openApiSpec.tags ?? [], { |
| 1672 | name: "Tag from OpenApi.Transform annotation" |
| 1673 | }] |
| 1674 | }) |
| 1675 | })) |
| 1676 | .annotate( |
| 1677 | HttpApi.AdditionalSchemas, |
| 1678 | [ |
| 1679 | Schema.Struct({ |
| 1680 | contentType: Schema.String, |
| 1681 | length: Schema.Int |
| 1682 | }).annotate({ |
| 1683 | identifier: "ComponentsSchema" |
| 1684 | }) |
| 1685 | ] |
| 1686 | ) |
| 1687 | {} |
| 1688 | |
| 1689 | // impl |
| 1690 |
nothing calls this directly
no test coverage detected