Skip to content

Commit 143f475

Browse files
Commit via running ake Sources/orgs
1 parent b47be22 commit 143f475

File tree

2 files changed

+43
-35
lines changed

2 files changed

+43
-35
lines changed

Sources/orgs/Client.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5551,7 +5551,7 @@ public struct Client: APIProtocol {
55515551
switch chosenContentType {
55525552
case "application/json":
55535553
body = try await converter.getResponseBodyAsJSON(
5554-
[Components.Schemas.org_hyphen_custom_hyphen_property].self,
5554+
[Components.Schemas.custom_hyphen_property].self,
55555555
from: responseBody,
55565556
transforming: { value in
55575557
.json(value)
@@ -5672,7 +5672,7 @@ public struct Client: APIProtocol {
56725672
switch chosenContentType {
56735673
case "application/json":
56745674
body = try await converter.getResponseBodyAsJSON(
5675-
[Components.Schemas.org_hyphen_custom_hyphen_property].self,
5675+
[Components.Schemas.custom_hyphen_property].self,
56765676
from: responseBody,
56775677
transforming: { value in
56785678
.json(value)
@@ -5782,7 +5782,7 @@ public struct Client: APIProtocol {
57825782
switch chosenContentType {
57835783
case "application/json":
57845784
body = try await converter.getResponseBodyAsJSON(
5785-
Components.Schemas.org_hyphen_custom_hyphen_property.self,
5785+
Components.Schemas.custom_hyphen_property.self,
57865786
from: responseBody,
57875787
transforming: { value in
57885788
.json(value)
@@ -5904,7 +5904,7 @@ public struct Client: APIProtocol {
59045904
switch chosenContentType {
59055905
case "application/json":
59065906
body = try await converter.getResponseBodyAsJSON(
5907-
Components.Schemas.org_hyphen_custom_hyphen_property.self,
5907+
Components.Schemas.custom_hyphen_property.self,
59085908
from: responseBody,
59095909
transforming: { value in
59105910
.json(value)

Sources/orgs/Types.swift

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6726,15 +6726,19 @@ public enum Components {
67266726
}
67276727
/// Custom property defined on an organization
67286728
///
6729-
/// - Remark: Generated from `#/components/schemas/org-custom-property`.
6730-
public struct org_hyphen_custom_hyphen_property: Codable, Hashable, Sendable {
6729+
/// - Remark: Generated from `#/components/schemas/custom-property`.
6730+
public struct custom_hyphen_property: Codable, Hashable, Sendable {
67316731
/// The name of the property
67326732
///
6733-
/// - Remark: Generated from `#/components/schemas/org-custom-property/property_name`.
6733+
/// - Remark: Generated from `#/components/schemas/custom-property/property_name`.
67346734
public var property_name: Swift.String
6735+
/// The URL that can be used to fetch, update, or delete info about this property via the API.
6736+
///
6737+
/// - Remark: Generated from `#/components/schemas/custom-property/url`.
6738+
public var url: Swift.String?
67356739
/// The type of the value for the property
67366740
///
6737-
/// - Remark: Generated from `#/components/schemas/org-custom-property/value_type`.
6741+
/// - Remark: Generated from `#/components/schemas/custom-property/value_type`.
67386742
@frozen public enum value_typePayload: String, Codable, Hashable, Sendable {
67396743
case string = "string"
67406744
case single_select = "single_select"
@@ -6743,19 +6747,19 @@ public enum Components {
67436747
}
67446748
/// The type of the value for the property
67456749
///
6746-
/// - Remark: Generated from `#/components/schemas/org-custom-property/value_type`.
6747-
public var value_type: Components.Schemas.org_hyphen_custom_hyphen_property.value_typePayload
6750+
/// - Remark: Generated from `#/components/schemas/custom-property/value_type`.
6751+
public var value_type: Components.Schemas.custom_hyphen_property.value_typePayload
67486752
/// Whether the property is required.
67496753
///
6750-
/// - Remark: Generated from `#/components/schemas/org-custom-property/required`.
6754+
/// - Remark: Generated from `#/components/schemas/custom-property/required`.
67516755
public var required: Swift.Bool?
67526756
/// Default value of the property
67536757
///
6754-
/// - Remark: Generated from `#/components/schemas/org-custom-property/default_value`.
6758+
/// - Remark: Generated from `#/components/schemas/custom-property/default_value`.
67556759
@frozen public enum default_valuePayload: Codable, Hashable, Sendable {
6756-
/// - Remark: Generated from `#/components/schemas/org-custom-property/default_value/case1`.
6760+
/// - Remark: Generated from `#/components/schemas/custom-property/default_value/case1`.
67576761
case case1(Swift.String)
6758-
/// - Remark: Generated from `#/components/schemas/org-custom-property/default_value/case2`.
6762+
/// - Remark: Generated from `#/components/schemas/custom-property/default_value/case2`.
67596763
case case2([Swift.String])
67606764
public init(from decoder: any Decoder) throws {
67616765
var errors: [any Error] = []
@@ -6788,32 +6792,33 @@ public enum Components {
67886792
}
67896793
/// Default value of the property
67906794
///
6791-
/// - Remark: Generated from `#/components/schemas/org-custom-property/default_value`.
6792-
public var default_value: Components.Schemas.org_hyphen_custom_hyphen_property.default_valuePayload?
6795+
/// - Remark: Generated from `#/components/schemas/custom-property/default_value`.
6796+
public var default_value: Components.Schemas.custom_hyphen_property.default_valuePayload?
67936797
/// Short description of the property
67946798
///
6795-
/// - Remark: Generated from `#/components/schemas/org-custom-property/description`.
6799+
/// - Remark: Generated from `#/components/schemas/custom-property/description`.
67966800
public var description: Swift.String?
67976801
/// An ordered list of the allowed values of the property.
67986802
/// The property can have up to 200 allowed values.
67996803
///
6800-
/// - Remark: Generated from `#/components/schemas/org-custom-property/allowed_values`.
6804+
/// - Remark: Generated from `#/components/schemas/custom-property/allowed_values`.
68016805
public var allowed_values: [Swift.String]?
68026806
/// Who can edit the values of the property
68036807
///
6804-
/// - Remark: Generated from `#/components/schemas/org-custom-property/values_editable_by`.
6808+
/// - Remark: Generated from `#/components/schemas/custom-property/values_editable_by`.
68056809
@frozen public enum values_editable_byPayload: String, Codable, Hashable, Sendable {
68066810
case org_actors = "org_actors"
68076811
case org_and_repo_actors = "org_and_repo_actors"
68086812
}
68096813
/// Who can edit the values of the property
68106814
///
6811-
/// - Remark: Generated from `#/components/schemas/org-custom-property/values_editable_by`.
6812-
public var values_editable_by: Components.Schemas.org_hyphen_custom_hyphen_property.values_editable_byPayload?
6813-
/// Creates a new `org_hyphen_custom_hyphen_property`.
6815+
/// - Remark: Generated from `#/components/schemas/custom-property/values_editable_by`.
6816+
public var values_editable_by: Components.Schemas.custom_hyphen_property.values_editable_byPayload?
6817+
/// Creates a new `custom_hyphen_property`.
68146818
///
68156819
/// - Parameters:
68166820
/// - property_name: The name of the property
6821+
/// - url: The URL that can be used to fetch, update, or delete info about this property via the API.
68176822
/// - value_type: The type of the value for the property
68186823
/// - required: Whether the property is required.
68196824
/// - default_value: Default value of the property
@@ -6822,14 +6827,16 @@ public enum Components {
68226827
/// - values_editable_by: Who can edit the values of the property
68236828
public init(
68246829
property_name: Swift.String,
6825-
value_type: Components.Schemas.org_hyphen_custom_hyphen_property.value_typePayload,
6830+
url: Swift.String? = nil,
6831+
value_type: Components.Schemas.custom_hyphen_property.value_typePayload,
68266832
required: Swift.Bool? = nil,
6827-
default_value: Components.Schemas.org_hyphen_custom_hyphen_property.default_valuePayload? = nil,
6833+
default_value: Components.Schemas.custom_hyphen_property.default_valuePayload? = nil,
68286834
description: Swift.String? = nil,
68296835
allowed_values: [Swift.String]? = nil,
6830-
values_editable_by: Components.Schemas.org_hyphen_custom_hyphen_property.values_editable_byPayload? = nil
6836+
values_editable_by: Components.Schemas.custom_hyphen_property.values_editable_byPayload? = nil
68316837
) {
68326838
self.property_name = property_name
6839+
self.url = url
68336840
self.value_type = value_type
68346841
self.required = required
68356842
self.default_value = default_value
@@ -6839,6 +6846,7 @@ public enum Components {
68396846
}
68406847
public enum CodingKeys: String, CodingKey {
68416848
case property_name
6849+
case url
68426850
case value_type
68436851
case required
68446852
case default_value
@@ -18141,12 +18149,12 @@ public enum Operations {
1814118149
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/GET/responses/200/content`.
1814218150
@frozen public enum Body: Sendable, Hashable {
1814318151
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/GET/responses/200/content/application\/json`.
18144-
case json([Components.Schemas.org_hyphen_custom_hyphen_property])
18152+
case json([Components.Schemas.custom_hyphen_property])
1814518153
/// The associated value of the enum case if `self` is `.json`.
1814618154
///
1814718155
/// - Throws: An error if `self` is not `.json`.
1814818156
/// - SeeAlso: `.json`.
18149-
public var json: [Components.Schemas.org_hyphen_custom_hyphen_property] {
18157+
public var json: [Components.Schemas.custom_hyphen_property] {
1815018158
get throws {
1815118159
switch self {
1815218160
case let .json(body):
@@ -18312,12 +18320,12 @@ public enum Operations {
1831218320
/// The array of custom properties to create or update.
1831318321
///
1831418322
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/requestBody/json/properties`.
18315-
public var properties: [Components.Schemas.org_hyphen_custom_hyphen_property]
18323+
public var properties: [Components.Schemas.custom_hyphen_property]
1831618324
/// Creates a new `jsonPayload`.
1831718325
///
1831818326
/// - Parameters:
1831918327
/// - properties: The array of custom properties to create or update.
18320-
public init(properties: [Components.Schemas.org_hyphen_custom_hyphen_property]) {
18328+
public init(properties: [Components.Schemas.custom_hyphen_property]) {
1832118329
self.properties = properties
1832218330
}
1832318331
public enum CodingKeys: String, CodingKey {
@@ -18349,12 +18357,12 @@ public enum Operations {
1834918357
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/responses/200/content`.
1835018358
@frozen public enum Body: Sendable, Hashable {
1835118359
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/PATCH/responses/200/content/application\/json`.
18352-
case json([Components.Schemas.org_hyphen_custom_hyphen_property])
18360+
case json([Components.Schemas.custom_hyphen_property])
1835318361
/// The associated value of the enum case if `self` is `.json`.
1835418362
///
1835518363
/// - Throws: An error if `self` is not `.json`.
1835618364
/// - SeeAlso: `.json`.
18357-
public var json: [Components.Schemas.org_hyphen_custom_hyphen_property] {
18365+
public var json: [Components.Schemas.custom_hyphen_property] {
1835818366
get throws {
1835918367
switch self {
1836018368
case let .json(body):
@@ -18537,12 +18545,12 @@ public enum Operations {
1853718545
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/responses/200/content`.
1853818546
@frozen public enum Body: Sendable, Hashable {
1853918547
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/GET/responses/200/content/application\/json`.
18540-
case json(Components.Schemas.org_hyphen_custom_hyphen_property)
18548+
case json(Components.Schemas.custom_hyphen_property)
1854118549
/// The associated value of the enum case if `self` is `.json`.
1854218550
///
1854318551
/// - Throws: An error if `self` is not `.json`.
1854418552
/// - SeeAlso: `.json`.
18545-
public var json: Components.Schemas.org_hyphen_custom_hyphen_property {
18553+
public var json: Components.Schemas.custom_hyphen_property {
1854618554
get throws {
1854718555
switch self {
1854818556
case let .json(body):
@@ -18835,12 +18843,12 @@ public enum Operations {
1883518843
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/responses/200/content`.
1883618844
@frozen public enum Body: Sendable, Hashable {
1883718845
/// - Remark: Generated from `#/paths/orgs/{org}/properties/schema/{custom_property_name}/PUT/responses/200/content/application\/json`.
18838-
case json(Components.Schemas.org_hyphen_custom_hyphen_property)
18846+
case json(Components.Schemas.custom_hyphen_property)
1883918847
/// The associated value of the enum case if `self` is `.json`.
1884018848
///
1884118849
/// - Throws: An error if `self` is not `.json`.
1884218850
/// - SeeAlso: `.json`.
18843-
public var json: Components.Schemas.org_hyphen_custom_hyphen_property {
18851+
public var json: Components.Schemas.custom_hyphen_property {
1884418852
get throws {
1884518853
switch self {
1884618854
case let .json(body):

0 commit comments

Comments
 (0)