Skip to content

[BUG] rust-server doesn't seem to like examples #3313

Open
@jamessewell

Description

@jamessewell

Hi,

I'm using rust-server with 4.0.1.

I have a path which returns an schema defined as below:

$ref: '#/components/schemas/Alert

This schema is a test one, and is defined as:

Alert:
  type: object
  properties:
     name:
       type: string
       example: "Test string"

This renders the following code in examples/client.rs

 // Disabled because there's no example.
        Some("ExecuteAlert") => {
            let result = core.run(client.execute_alert(???));
            println!("{:?} (X-Span-ID: {:?})", result, (client.context() as &Has<XSpanIdString>).get().clone());
         },

Is this something which is meant to work when examples are set?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions