Skip to content

Instantly share code, notes, and snippets.

@ponelat
Created November 30, 2021 11:57
Show Gist options
  • Select an option

  • Save ponelat/8575a984f6ce1d3c13db20b2d8ca683e to your computer and use it in GitHub Desktop.

Select an option

Save ponelat/8575a984f6ce1d3c13db20b2d8ca683e to your computer and use it in GitHub Desktop.
timestamp issue in codegen
swagger: '2.0'
info:
title: Example to describe swagger codegen issue
description: |
Example Definition with Timestamp class as `java.sql.Timestamp` instead of custom model.
version: v1
paths:
/foo:
post:
operationId: MakeFoo
description: ok
parameters:
- name: body
in: body
schema:
type: object
properties:
timestamp:
$ref: '#/definitions/Timestamp'
responses:
default:
description: Successful operation
definitions:
Timestamp:
type: object
properties:
epochMillis:
description: Milliseconds since the Unix epoch
type: string
format: int64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment