Skip to content

string:date-time type mapping is not generating with specified type #270

@mjparme

Description

@mjparme

Using 2024.3 of the spring processor I have this in an OpenAPI spec:

"startDate": {
    "type": "string",
    "format": "date-time"
},

I have this in my mapping.yml:

types:
  - type: string:date-time => java.time.LocalDate

But is is still generating with OffsetDateTime:

    @JsonProperty("startDate")
    OffsetDateTime startDate,

With this version of the base plugin:

plugins {
    id 'io.openapiprocessor.openapi-processor' version '2023.2'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions