Skip to content

Conversation

@ePaul
Copy link
Contributor

@ePaul ePaul commented Mar 26, 2017

PR checklist

  • Read the contribution guidelines.
  • Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change.
    → bin/csharp-petstore.sh + bin/csharp-property-changed-petstore.sh.
  • Filed the PR against the correct branch: master for non-breaking changes.

Description of the PR

This changes the C# sample generation scripts to pass a fixed packageGuid parameter.
The effect is that the generated samples don't change randomly with every update, obfuscating the real changes. (This is a part of #5196.)

The functionality for this was already build in #1941, when the project files with GUIDs were added.

I chose the fixed GUIDs as the latest random value from master, with the effect that an update now doesn't change anything anymore. (When merging into 2.3.0 and regenerating, you'll get a change once.)

(I also changed the .bat files, though I'm not able to test this here.)

@ePaul ePaul changed the title Issue #5196: make package GUID non-random for the C# samples. [C#] Issue #5196: make package GUID non-random for the C# samples. Mar 26, 2017
@wing328 wing328 added this to the v2.2.3 milestone Mar 27, 2017
@wing328 wing328 merged commit 06ce5ff into swagger-api:master Mar 27, 2017
@ePaul ePaul deleted the 5196-make-package-uuid-nonrandom-for-c#-samples branch March 27, 2017 15:17
spr3nk3ls pushed a commit to spr3nk3ls/swagger-codegen that referenced this pull request Mar 28, 2017
…samples. (swagger-api#5198)

* Issue swagger-api#5196: make package GUID non-random for the C# samples.

* Also change the .bat files for C#.
@ePaul ePaul mentioned this pull request Mar 28, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants