cadl/packages/openapi3/test
Kyle Zhang 314b337154
Fix issue for xml-model (#4970)
missing items ` - {}` in Author

```
model Book {
  author: Author[];
}

model Author {
  @attribute id: string;
  book?: Book[];
}
```

```
Author:
      type: object
      required:
        - id
      properties:
        id:
          type: string
          xml:
            attribute: true
        book:
          type: array
          items:
            allOf:
              - {}
            xml:
              name: Book
          xml:
            wrapped: true
    Book:
      type: object
      required:
        - author
      properties:
        author:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/Author'
            xml:
              name: Author
          xml:
            wrapped: true
```

---------

Co-authored-by: Kyle Zhang <v-zhanh@microsoft.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
2024-11-05 17:06:15 +00:00
..
tsp-openapi3 Symbol refactor (#4849) 2024-11-04 23:50:10 +00:00
additional-properties.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
array.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
circular-references.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
decorators.test.ts Value world, object, tuple literals, const (#3022) 2024-05-08 20:06:28 +00:00
discriminator.test.ts Mark discriminator properties consistently as requiered (#4663) 2024-10-14 21:12:29 +00:00
documentation.test.ts Migrate test framework to vitest (#2769) 2024-01-02 11:40:29 -08:00
enums.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
examples.test.ts Fix enum in union example (#4462) 2024-10-04 19:40:08 +00:00
get-openapi.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
info.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
metadata.test.ts [http] Add Parameter Decorator `@cookie` to Specify Cookie Parameters (#4761) 2024-11-01 19:59:32 +00:00
models.test.ts Default values supporting scalar and object (#4423) 2024-09-17 17:45:01 +00:00
multipart.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
no-service-found.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
nullable-properties.test.ts Use allof when building nullable enum (#4727) 2024-10-31 19:22:57 +00:00
openapi-output.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
output-file.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
overloads.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
parameters.test.ts [http] Add Parameter Decorator `@cookie` to Specify Cookie Parameters (#4761) 2024-11-01 19:59:32 +00:00
primitive-types.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
record.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
response-descriptions.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
return-types.test.ts [http] Add Parameter Decorator `@cookie` to Specify Cookie Parameters (#4761) 2024-11-01 19:59:32 +00:00
scalar-constraints.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
security.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
servers.test.ts The description parameter of @server should be optional (#4804) 2024-10-29 23:50:04 +00:00
shared-routes.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
status-codes.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
string-template.test.ts Migrate test framework to vitest (#2769) 2024-01-02 11:40:29 -08:00
tagmetadata.test.ts Add new `@tagMetadata` decorator to OpenAPI library (#4834) 2024-11-04 17:04:00 +00:00
test-host.ts Add xml support to openapi3 (#4214) 2024-10-28 16:02:22 +00:00
union-schema.test.ts Use allof when building nullable enum (#4727) 2024-10-31 19:22:57 +00:00
versioning.test.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
xml-models.test.ts Fix issue for xml-model (#4970) 2024-11-05 17:06:15 +00:00