Use deterministic randomness in ExampleGenerator. (#5068)

* Update samples for nodejs + nodejs-google-cloud-functions.

* Fix example generator to use deterministic randomness.

This avoids changing results after each generation, and makes diff reviews easier.

* Update NodeJS samples.

This is the last "randomness" update. From now on the samples should only change if either the generator, the input or parameters change.
This commit is contained in:
Paŭlo Ebermann
2017-03-15 10:15:13 +01:00
committed by wing328
parent b2aa877ce0
commit 31f29be2a0
14 changed files with 254 additions and 180 deletions

View File

@@ -108,11 +108,11 @@ paths:
type: "array"
items:
type: "string"
default: "available"
enum:
- "available"
- "pending"
- "sold"
default: "available"
collectionFormat: "csv"
responses:
200:
@@ -356,8 +356,8 @@ paths:
description: "ID of pet that needs to be fetched"
required: true
type: "integer"
maximum: 5.0
minimum: 1.0
maximum: 5
minimum: 1
format: "int64"
responses:
200: