-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dont add
@person
to a stakeholder if the output is in json
format…
…. Also made the transformer more generic with `ToJsonTransformer` as name
- Loading branch information
1 parent
ee023b2
commit e117253
Showing
3 changed files
with
36 additions
and
16 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
20 changes: 17 additions & 3 deletions
20
packages/oslo-converter-stakeholders/lib/interfaces/StakeholdersDocument.ts
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 |
---|---|---|
@@ -1,6 +1,20 @@ | ||
import type { ContributorType } from '@oslo-converter-stakeholders/enums/ContributorType'; | ||
|
||
export interface StakeholdersDocument { | ||
'@context'?: object; | ||
contributors?: object[]; | ||
authors?: object[]; | ||
editors?: object[]; | ||
contributors?: Stakeholder[]; | ||
authors?: Stakeholder[]; | ||
editors?: Stakeholder[]; | ||
} | ||
|
||
export interface Stakeholder { | ||
'@type'?: string; | ||
firstName: string; | ||
lastName: string; | ||
affiliation: { | ||
affiliationName: string; | ||
homepage?: string; | ||
}; | ||
email: string; | ||
contributorType: ContributorType; | ||
} |
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