Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #3313
Closed
Open
Issue created Jul 09, 2019 by Administrator@rootContributor

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

Created by: 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?

Assignee
Assign to
Time tracking