Skip to main content

EXAMPLES

Constant EXAMPLES 

Source
pub const EXAMPLES: &str = "\
Examples:
  # Write generated code. Select artifacts in the configuration file:
  oapi-codegen --config-file oapi-codegen.yaml --output-file src/api.rs api.yaml

  # You can also set output with the `output:` configuration key:
  oapi-codegen --config-file oapi-codegen.yaml api.yaml

You must provide a configuration file.
The configuration file must enable at least one artifact.
You must set output with --output-file or the `output:` configuration key:
  # oapi-codegen.yaml
  output: src/api.rs
  generate:
    models: true
    std-http-server: true
    client: true";
Expand description

Extra --help text with examples.