File tree 2 files changed +8
-11
lines changed
2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ export interface components {
47
47
id : string ;
48
48
name : string ;
49
49
} ;
50
- PurchasableProduct : {
50
+ PurchasableProduct : components [ "schemas" ] [ "Product" ] & {
51
51
price : components [ "schemas" ] [ "Price" ] ;
52
- } & WithRequired < components [ "schemas" ] [ "Product" ] , "price" > ;
52
+ } ;
53
53
Price : {
54
54
value : number ;
55
55
currency : string ;
@@ -62,7 +62,4 @@ export interface components {
62
62
pathItems : never ;
63
63
}
64
64
export type $defs = Record < string , never > ;
65
- type WithRequired < T , K extends keyof T > = T & {
66
- [ P in K ] -?: T [ P ] ;
67
- } ;
68
65
export type operations = Record < string , never > ;
Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ components:
29
29
- name
30
30
31
31
PurchasableProduct :
32
- type : object
33
- properties :
34
- price :
35
- $ref : ' #/components/schemas/Price'
36
- required :
37
- - price
38
32
allOf :
39
33
- $ref : ' #/components/schemas/Product'
34
+ - type : object
35
+ properties :
36
+ price :
37
+ $ref : ' #/components/schemas/Price'
38
+ required :
39
+ - price
40
40
41
41
Price :
42
42
type : object
You can’t perform that action at this time.
0 commit comments