Skip to content

Type dateTime not supported #243

Closed
Closed

Description

Hi,

I found a problem with dateTime type.

Steps:

  • Try to validate/serialize an OpenApi definition containing dateTime schema (e.g. Docker Engine API).

Result:

  • OpenApiWriterException: The type 'System.DateTimeOffset' is not supported in Open API document.

Proposed solution:

  • Add support to DateTimeOffset, ISO 8601 style : Writer.Write(value.ToString(@"O")).

Activity

  1. darrelmiller commented on Apr 25, 2018

    @darrelmiller
    Member

    Thanks for the feedback. I will investigate.

  2. darrelmiller commented on Apr 25, 2018

    @darrelmiller
    Member

    I was able to reproduce and resolve. I need to add some tests around this, but I think we should be able to include this our 1.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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