-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(map): Extend supported Key Types for Typescript codegen (#70)
* feat(*): keys are variable typed Signed-off-by: Jonathan Casey <[email protected]> * test(*): update test Signed-off-by: Jonathan Casey <[email protected]> * test(*): update snapshot Signed-off-by: Jonathan Casey <[email protected]> * test(*): adds scalar test coverage Signed-off-by: Jonathan Casey <[email protected]> * feat(*): minor refactor, update tests Signed-off-by: Jonathan Casey <[email protected]> * test(*): update snapshot Signed-off-by: Jonathan Casey <[email protected]> --------- Signed-off-by: Jonathan Casey <[email protected]>
- Loading branch information
1 parent
79653dd
commit 01bb536
Showing
4 changed files
with
151 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -628,7 +628,7 @@ type Person struct { | |
Ssn string \`json:"ssn"\` | ||
Height float64 \`json:"height"\` | ||
Dob time.Time \`json:"dob"\` | ||
nextOfKin := make(map[string]time.Time) \`json:"nextOfKin"\` | ||
nextOfKin := make(map[string]string) \`json:"nextOfKin"\` | ||
} | ||
type Employee struct { | ||
Person | ||
|
@@ -2141,7 +2141,6 @@ exports[`codegen #formats check we can convert all formats from namespace unvers | |
"type": "string" | ||
}, | ||
"org.acme.hr.KinTelephone": { | ||
"format": "date-time", | ||
"type": "string" | ||
} | ||
} | ||
|
@@ -3260,7 +3259,6 @@ exports[`codegen #formats check we can convert all formats from namespace unvers | |
"type": "string" | ||
}, | ||
"org.acme.hr.KinTelephone": { | ||
"format": "date-time", | ||
"type": "string" | ||
} | ||
} | ||
|
@@ -4764,11 +4762,11 @@ import {IConcept,IAsset,IParticipant,IEvent,ITransaction} from './[email protected] | |
// interfaces | ||
export type CompanyProperties = Map<string, string>; | ||
|
||
export type EmployeeLoginTimes = Map<string, null>; | ||
export type EmployeeLoginTimes = Map<string, Date>; | ||
|
||
export type EmployeeSocialSecurityNumbers = Map<string, null>; | ||
export type EmployeeSocialSecurityNumbers = Map<string, string>; | ||
|
||
export type NextOfKin = Map<string, null>; | ||
export type NextOfKin = Map<string, string>; | ||
|
||
export type EmployeeProfiles = Map<string, IConcept>; | ||
|
||
|
@@ -6180,7 +6178,7 @@ type Person struct { | |
Ssn string \`json:"ssn"\` | ||
Height float64 \`json:"height"\` | ||
Dob time.Time \`json:"dob"\` | ||
nextOfKin := make(map[string]time.Time) \`json:"nextOfKin"\` | ||
nextOfKin := make(map[string]string) \`json:"nextOfKin"\` | ||
} | ||
type Employee struct { | ||
Person | ||
|
@@ -7693,7 +7691,6 @@ exports[`codegen #formats check we can convert all formats from namespace versio | |
"type": "string" | ||
}, | ||
"[email protected]": { | ||
"format": "date-time", | ||
"type": "string" | ||
} | ||
} | ||
|
@@ -8828,7 +8825,6 @@ exports[`codegen #formats check we can convert all formats from namespace versio | |
"type": "string" | ||
}, | ||
"[email protected]": { | ||
"format": "date-time", | ||
"type": "string" | ||
} | ||
} | ||
|
@@ -10348,11 +10344,11 @@ import {IConcept,IAsset,IParticipant,IEvent,ITransaction} from './[email protected] | |
// interfaces | ||
export type CompanyProperties = Map<string, string>; | ||
|
||
export type EmployeeLoginTimes = Map<string, null>; | ||
export type EmployeeLoginTimes = Map<string, Date>; | ||
|
||
export type EmployeeSocialSecurityNumbers = Map<string, null>; | ||
export type EmployeeSocialSecurityNumbers = Map<string, string>; | ||
|
||
export type NextOfKin = Map<string, null>; | ||
export type NextOfKin = Map<string, string>; | ||
|
||
export type EmployeeProfiles = Map<string, IConcept>; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters