Skip to content

Commit

Permalink
fix bad github api openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Oct 12, 2023
1 parent d95c63b commit a6eaeed
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 32 deletions.
40 changes: 20 additions & 20 deletions Lambdas/GitHubAPI/GeneratedSources/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2806,15 +2806,15 @@ public enum Components {
/// - Remark: Generated from `#/components/schemas/nullable-license-simple`.
public struct nullable_license_simple: Codable, Hashable, Sendable {
/// - Remark: Generated from `#/components/schemas/nullable-license-simple/key`.
public var key: Swift.String
public var key: Swift.String?
/// - Remark: Generated from `#/components/schemas/nullable-license-simple/name`.
public var name: Swift.String
public var name: Swift.String?
/// - Remark: Generated from `#/components/schemas/nullable-license-simple/url`.
public var url: Swift.String
public var url: Swift.String?
/// - Remark: Generated from `#/components/schemas/nullable-license-simple/spdx_id`.
public var spdx_id: Swift.String
public var spdx_id: Swift.String?
/// - Remark: Generated from `#/components/schemas/nullable-license-simple/node_id`.
public var node_id: Swift.String
public var node_id: Swift.String?
/// - Remark: Generated from `#/components/schemas/nullable-license-simple/html_url`.
public var html_url: Swift.String?
/// Creates a new `nullable_license_simple`.
Expand All @@ -2827,11 +2827,11 @@ public enum Components {
/// - node_id:
/// - html_url:
public init(
key: Swift.String,
name: Swift.String,
url: Swift.String,
spdx_id: Swift.String,
node_id: Swift.String,
key: Swift.String? = nil,
name: Swift.String? = nil,
url: Swift.String? = nil,
spdx_id: Swift.String? = nil,
node_id: Swift.String? = nil,
html_url: Swift.String? = nil
) {
self.key = key
Expand Down Expand Up @@ -16124,15 +16124,15 @@ public enum Components {
/// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license`.
public struct licensePayload: Codable, Hashable, Sendable {
/// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license/key`.
public var key: Swift.String
public var key: Swift.String?
/// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license/name`.
public var name: Swift.String
public var name: Swift.String?
/// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license/url`.
public var url: Swift.String
public var url: Swift.String?
/// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license/spdx_id`.
public var spdx_id: Swift.String
public var spdx_id: Swift.String?
/// - Remark: Generated from `#/components/schemas/pull-request/head/repo/license/node_id`.
public var node_id: Swift.String
public var node_id: Swift.String?
/// Creates a new `licensePayload`.
///
/// - Parameters:
Expand All @@ -16142,11 +16142,11 @@ public enum Components {
/// - spdx_id:
/// - node_id:
public init(
key: Swift.String,
name: Swift.String,
url: Swift.String,
spdx_id: Swift.String,
node_id: Swift.String
key: Swift.String? = nil,
name: Swift.String? = nil,
url: Swift.String? = nil,
spdx_id: Swift.String? = nil,
node_id: Swift.String? = nil
) {
self.key = key
self.name = name
Expand Down
12 changes: 0 additions & 12 deletions Lambdas/GitHubAPI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59385,12 +59385,6 @@ components:
html_url:
type: string
format: uri
required:
- key
- name
- url
- spdx_id
- node_id
nullable: true
repository:
title: Repository
Expand Down Expand Up @@ -77403,12 +77397,6 @@ components:
nullable: true
node_id:
type: string
required:
- key
- name
- url
- spdx_id
- node_id
nullable: true
pushed_at:
type: string
Expand Down

0 comments on commit a6eaeed

Please sign in to comment.