Package com.arc_e_tect.gradle.apionly.transcriberj.model


package com.arc_e_tect.gradle.apionly.transcriberj.model
The contract model: what a bundled OpenAPI 3 contract says, in the terms code generation needs, and nothing that knows about Java, REST Docs or WireMock.

ContractParser builds a ContractModel from a contract the API-Only Subscriber fetched. The model keeps everything the contract says about its components and operations: what it types, it types; what it does not, it keeps as raw values and reports as a Finding, so nothing is dropped without a trace.

Values are immutable. An absent keyword is null; an empty one is empty.

  • Class
    Description
    The value of additionalProperties: a boolean, or a schema.
    RFC 8785, the JSON Canonicalization Scheme, over the maps, lists and scalars a YAML or JSON parser produces.
    A schema component.
    The value of a const keyword.
    A schema's validation keywords.
    A construct the model classifies wherever it occurs, so that its treatment in generated code is reported rather than discovered.
    A bundled OpenAPI 3 contract, in the terms code generation needs.
    A document that is not a bundled OpenAPI 3 contract the model can be built from.
    Builds a ContractModel from a bundled OpenAPI 3 contract.
    A discriminator.
    One occurrence of a classified construct.
    The HTTP methods an OpenAPI path item can hold an operation for.
    One entry of a content map.
    One operation: a method on a path.
    An operation or path-item parameter.
    One entry of paths.
    Where a component came from.
    A $ref written where a parameter, request body or response would be.
    An operation's request body.
    One response of an operation.
    A reusable component other than a schema: a response, parameter or request body.
    A JSON Schema, as a bundled contract writes it.
    What code generation does with a classified construct.