Skip to content

Commit 62e8551

Browse files
committed
Always take the first example
By doing this we'll prevent generation churn with only example updates
1 parent 8dde1e4 commit 62e8551

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+49
-49
lines changed

src/Schema/ApiOverview.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public const SCHEMA_JSON = '{"title":"Api Overview","required":["verifiable_password_authentication"],"type":"object","properties":{"verifiable_password_authentication":{"type":"boolean","examples":[true]},"ssh_key_fingerprints":{"type":"object","properties":{"SHA256_RSA":{"type":"string"},"SHA256_DSA":{"type":"string"},"SHA256_ECDSA":{"type":"string"},"SHA256_ED25519":{"type":"string"}}},"hooks":{"type":"array","items":{"type":"string"},"examples":["127.0.0.1\\/32"]},"web":{"type":"array","items":{"type":"string"},"examples":["127.0.0.1\\/32"]},"api":{"type":"array","items":{"type":"string"},"examples":["127.0.0.1\\/32"]},"git":{"type":"array","items":{"type":"string"},"examples":["127.0.0.1\\/32"]},"packages":{"type":"array","items":{"type":"string"},"examples":["13.65.0.0\\/16","157.55.204.33\\/32","2a01:111:f403:f90c::\\/62"]},"pages":{"type":"array","items":{"type":"string"},"examples":["192.30.252.153\\/32","192.30.252.154\\/32"]},"importer":{"type":"array","items":{"type":"string"},"examples":["54.158.161.132","54.226.70.38"]},"actions":{"type":"array","items":{"type":"string"},"examples":["13.64.0.0\\/16","13.65.0.0\\/16"]},"dependabot":{"type":"array","items":{"type":"string"},"examples":["192.168.7.15\\/32","192.168.7.16\\/32"]}},"description":"Api Overview"}';
1313
public const SCHEMA_TITLE = 'Api Overview';
1414
public const SCHEMA_DESCRIPTION = 'Api Overview';
15-
public const SCHEMA_EXAMPLE_DATA = '{"verifiable_password_authentication":true,"ssh_key_fingerprints":{"SHA256_RSA":"generated_SHA256_RSA","SHA256_DSA":"generated_SHA256_DSA","SHA256_ECDSA":"generated_SHA256_ECDSA","SHA256_ED25519":"generated_SHA256_ED25519"},"hooks":["127.0.0.1\\/32"],"web":["127.0.0.1\\/32"],"api":["127.0.0.1\\/32"],"git":["127.0.0.1\\/32"],"packages":["2a01:111:f403:f90c::\\/62"],"pages":["192.30.252.154\\/32"],"importer":["54.226.70.38"],"actions":["13.64.0.0\\/16"],"dependabot":["192.168.7.16\\/32"]}';
15+
public const SCHEMA_EXAMPLE_DATA = '{"verifiable_password_authentication":true,"ssh_key_fingerprints":{"SHA256_RSA":"generated_SHA256_RSA","SHA256_DSA":"generated_SHA256_DSA","SHA256_ECDSA":"generated_SHA256_ECDSA","SHA256_ED25519":"generated_SHA256_ED25519"},"hooks":["127.0.0.1\\/32"],"web":["127.0.0.1\\/32"],"api":["127.0.0.1\\/32"],"git":["127.0.0.1\\/32"],"packages":["13.65.0.0\\/16"],"pages":["192.30.252.153\\/32"],"importer":["54.158.161.132"],"actions":["13.64.0.0\\/16"],"dependabot":["192.168.7.15\\/32"]}';
1616
/**
1717
* @param array<string> $hooks
1818
* @param array<string> $web

src/Schema/AssignedIssueEvent.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Schema/BranchProtection.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Schema/BranchWithProtection.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Schema/CheckRun.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Schema/CheckRunWithSimpleCheckSuite.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Schema/CodeSearchResultItem.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Schema/CommitActivity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public const SCHEMA_JSON = '{"title":"Commit Activity","required":["days","total","week"],"type":"object","properties":{"days":{"type":"array","items":{"type":"integer"},"examples":[0,3,26,20,39,1,0]},"total":{"type":"integer","examples":[89]},"week":{"type":"integer","examples":[1336280400]}},"description":"Commit Activity"}';
1313
public const SCHEMA_TITLE = 'Commit Activity';
1414
public const SCHEMA_DESCRIPTION = 'Commit Activity';
15-
public const SCHEMA_EXAMPLE_DATA = '{"days":[26],"total":89,"week":1336280400}';
15+
public const SCHEMA_EXAMPLE_DATA = '{"days":[0],"total":89,"week":1336280400}';
1616
/**
1717
* @param ?array<int> $days
1818
*/

src/Schema/DemilestonedIssueEvent.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Schema/Deployment.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)