fix: nullable not respected for objects with nullable properties #533 #1550
Annotations
5 errors
|
Run bun run test
Process completed with exit code 1.
|
|
Run bun run test:
tests/simple.test.ts#L36
Error: Snapshot `simple > 'issue-1057' 1` mismatched
- Expected
+ Received
@@ -8,8676 +8,15 @@
* ## AUTHOR: acacode ##
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
* ---------------------------------------------------------------
*/
- export interface ActionsBillingUsage {
- /** The amount of free GitHub Actions minutes available. */
- included_minutes: number;
- minutes_used_breakdown: {
- /** Total minutes used on macOS runner machines. */
- MACOS?: number;
- /** Total minutes used on Ubuntu runner machines. */
- UBUNTU?: number;
- /** Total minutes used on Windows runner machines. */
- WINDOWS?: number;
- };
- /** The sum of the free and paid GitHub Actions minutes used. */
- total_minutes_used: number;
- /** The total paid GitHub Actions minutes used. */
- total_paid_minutes_used: number;
- }
-
- /** Whether GitHub Actions is enabled on the repository. */
- export type ActionsEnabled = boolean;
-
- export interface ActionsEnterprisePermissions {
- /** The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. */
- allowed_actions: AllowedActions;
- /** The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`. */
- enabled_organizations: EnabledOrganizations;
- /** The API URL to use to get or set the actions that are allowed to run, when `allowed_actions` is set to `selected`. */
- selected_actions_url?: SelectedActionsUrl;
- /** The API URL to use to get or set the selected organizations that are allowed to run GitHub Actions, when `enabled_organizations` is set to `selected`. */
- selected_organizations_url?: string;
- }
-
- export interface ActionsOrganizationPermissions {
- /** The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. */
- allowed_actions: AllowedActions;
- /** The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`. */
- enabled_repositories: EnabledRepositories;
- /** The API URL to use to get or set the actions that are allowed to run, when `allowed_actions` is set to `selected`. */
- selected_actions_url?: SelectedActionsUrl;
- /** The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`. */
- selected_repositories_url?: string;
- }
-
- /**
- * ActionsPublicKey
- * The public key used for setting Actions Secrets.
- */
- export interface ActionsPublicKey {
- /** @example "2011-01-26T19:01:12Z" */
- created_at?: string;
- /** @example 2 */
- id?: number;
- /**
- * The Base64 encoded public key.
- * @example "hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs="
- */
- key: string;
- /**
- * The identifier for the key.
- * @example "1234567"
- */
- key_id: string;
- /** @example "ssh-rsa AAAAB3NzaC1yc2EAAA" */
- title?: string;
- /** @example "https://api.github.com/user/keys/2" */
- url?: string;
- }
-
- export interface ActionsRepositoryPermissions {
- /** The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. */
- allowed_actions: AllowedActions;
- /** Whether GitHub Actions is enabled on the repository. */
- enabled: ActionsEnabled;
- /** The API URL to use to get or set the actions that are allowed to run, when `allowed_actions` is set to `selected`. */
- selected_actions_url?: SelectedActionsUrl;
- }
-
- /**
- * Actions Secret
- * Set secrets for GitHub Actions.
- */
- export interface ActionsSecret {
- /** @Format date-time */
- created_at: string;
- /**
- * The name of the secret.
- * @example "SECRET_TOKEN"
- */
- name: string;
- /** @Format date-time */
- updated_at: string;
- }
-
- /**
- * Actor
- * A
|
|
Run bun run test:
tests/simple.test.ts#L36
Error: Snapshot `simple > 'full-swagger-scheme' 1` mismatched
❯ tests/simple.test.ts:36:21
|
|
Run bun run test:
tests/extended.test.ts#L43
Error: Snapshot `extended > 'link-example' 1` mismatched
- Expected
+ Received
@@ -8,38124 +8,186 @@
* ## AUTHOR: acacode ##
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
* ---------------------------------------------------------------
*/
- export type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgData = any;
-
- export interface ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParams {
- org: string;
- repositoryId: number;
- /** Unique identifier of the self-hosted runner group. */
- runnerGroupId: number;
- }
-
- export type ActionsAddSelectedRepoToOrgSecretData = any;
-
- export interface ActionsAddSelectedRepoToOrgSecretParams {
- org: string;
- repositoryId: number;
- /** secret_name parameter */
- secretName: string;
- }
-
- export type ActionsAddSelfHostedRunnerToGroupForOrgData = any;
-
- export interface ActionsAddSelfHostedRunnerToGroupForOrgParams {
- org: string;
- /** Unique identifier of the self-hosted runner group. */
- runnerGroupId: number;
- /** Unique identifier of the self-hosted runner. */
- runnerId: number;
- }
-
- export interface ActionsBillingUsage {
- /** The amount of free GitHub Actions minutes available. */
- included_minutes: number;
- minutes_used_breakdown: {
- /** Total minutes used on macOS runner machines. */
- MACOS?: number;
- /** Total minutes used on Ubuntu runner machines. */
- UBUNTU?: number;
- /** Total minutes used on Windows runner machines. */
- WINDOWS?: number;
- };
- /** The sum of the free and paid GitHub Actions minutes used. */
- total_minutes_used: number;
- /** The total paid GitHub Actions minutes used. */
- total_paid_minutes_used: number;
- }
-
- export type ActionsCancelWorkflowRunData = any;
-
- export interface ActionsCancelWorkflowRunParams {
- owner: string;
- repo: string;
- runId: number;
- }
-
- export type ActionsCreateOrUpdateOrgSecretData = any;
-
- export interface ActionsCreateOrUpdateOrgSecretParams {
- org: string;
- /** secret_name parameter */
- secretName: string;
- }
-
- export interface ActionsCreateOrUpdateOrgSecretPayload {
- /** Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/actions#get-an-organization-public-key) endpoint. */
- encrypted_value?: string;
- /** ID of the key you used to encrypt the secret. */
- key_id?: string;
- /** An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. */
- selected_repository_ids?: string[];
- /**
- * Configures the access that repositories have to the organization secret. Can be one of:
- * \- `all` - All repositories in an organization can access the secret.
- * \- `private` - Private repositories in an organization can access the secret.
- * \- `selected` - Only specific repositories can access the secret.
- */
- visibility?: ActionsCreateOrUpdateOrgSecretVisibilityEnum;
- }
-
- /**
- * Configures the access that repositories have to the organization secret. Can be one of:
- * \- `all` - All repositories in an organization can access the secret.
- * \- `private` - Private repositories in an organization can access the secret.
- * \- `selected` - Only specific repositories can access the secret.
-
|
|
Run bun run test:
tests/extended.test.ts#L43
Error: Snapshot `extended > 'full-swagger-scheme' 1` mismatched
❯ tests/extended.test.ts:43:21
|
background
wait
wait-all
cancel
Loading