Skip to content

Fix for writing DateTimeOffset values #246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 1, 2018
Merged

Conversation

darrelmiller
Copy link
Member

Addresses #243

@PerthCharern
Copy link
Contributor

PerthCharern commented Apr 27, 2018

    public void ParseScalarIntegertAsAnyShouldSucceed()

nit, not related to your change but I just happened to notice it. Could you remove the t? #Closed


Refers to: test/Microsoft.OpenApi.Readers.Tests/V3Tests/OpenApiAnyTests.cs:83 in e4c7a0e. [](commit_id = e4c7a0e, deletion_comment = False)

var json = WriteAsJson(dateTimeValue);

// Assert
json.Should().Be(input.ToString(@"o"));
Copy link
Contributor

@PerthCharern PerthCharern Apr 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ [](start = 44, length = 1)

nit, @ not needed #Closed

@PerthCharern
Copy link
Contributor

PerthCharern commented Apr 27, 2018

        }

On a related note, should we also call long.TryParse in the ValueNode in the Reader?

https://github.com/Microsoft/OpenAPI.NET/blob/bd61abdfee72445d52312d70f04db087e6d30cf9/src/Microsoft.OpenApi.Readers/ParseNodes/ValueNode.cs. #Closed


Refers to: src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs:211 in e4c7a0e. [](commit_id = e4c7a0e, deletion_comment = False)

Copy link
Contributor

@PerthCharern PerthCharern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@darrelmiller
Copy link
Member Author

darrelmiller commented Apr 27, 2018 via email

@darrelmiller
Copy link
Member Author

@PerthCharern Any idea why we have this license/cla check that is holding up the PR?

@PerthCharern
Copy link
Contributor

PerthCharern commented Apr 30, 2018

@darrelmiller

The check evaluates whether a CLA needs to be signed for Microsoft (based on various factors like contributor(s), size of the change, etc.)

I have seen cases where it occasionally hangs up indefinitely for some reason. In that case, the fastest way to resolve it is to commit a new whitespace change.

@darrelmiller
Copy link
Member Author

@PerthCharern I knew what it was, I just couldn't understand why it was an issue. I'll try the whitespace trick.

@PerthCharern
Copy link
Contributor

That I don't know. It started happening recently. I'll get in touch with the OSS team.

@darrelmiller darrelmiller merged commit aafba26 into master May 1, 2018
@darrelmiller darrelmiller deleted the dm/dateTimeOffsetBug branch May 1, 2018 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants