Skip to content

Add apiClassPrefix / apiClassSuffix configuration options #43

@halotukozak

Description

@halotukozak

Description

Add apiClassPrefix (String, default "") and apiClassSuffix (String, default "Api") options to JustworksSpecConfiguration. Currently the suffix "Api" is hardcoded in ClientGenerator.kt:52. Users should be able to customize generated class names (e.g. PetstoreClient instead of PetstoreApi).

Acceptance criteria

  • JustworksSpecConfiguration DSL supports apiClassPrefix and apiClassSuffix
  • Generated client class names use configured prefix/suffix
  • Default suffix is "Api" — no breaking change
  • Tests cover custom prefix, custom suffix, and both combined
  • README documents the options

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions