fix!: use identifier object instead of plain number for publication prerequisite identifier
This commit is contained in:
+2
-2
@@ -4,11 +4,11 @@
|
||||
//
|
||||
|
||||
public struct PublicationPrerequisite: EntitySubtype {
|
||||
public let id: Int
|
||||
public let id: PublicationIdentifier
|
||||
|
||||
public let displayOption: DisplayOption?
|
||||
|
||||
public init(id: Int, displayOption: DisplayOption? = nil) {
|
||||
public init(id: PublicationIdentifier, displayOption: DisplayOption? = nil) {
|
||||
self.id = id
|
||||
self.displayOption = displayOption
|
||||
}
|
||||
|
||||
@@ -13,8 +13,7 @@ Key | Description | Details
|
||||
|
||||
#### <a name="PublicationPrerequisite/id"></a> `id`
|
||||
|
||||
- **Type:** Integer
|
||||
- **Minimum:** `1`
|
||||
- **Type:** <a href="../../_Identifier.md#PublicationIdentifier">PublicationIdentifier</a>
|
||||
|
||||
#### <a name="PublicationPrerequisite/display_option"></a> `display_option?`
|
||||
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
"$ref": "../../_Identifier.schema.json#/$defs/PublicationIdentifier"
|
||||
},
|
||||
"display_option": {
|
||||
"$ref": "../DisplayOption.schema.json#/$defs/DisplayOption"
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
import { PublicationIdentifier } from "../../_Identifier.js"
|
||||
import { DisplayOption } from "../DisplayOption.js"
|
||||
|
||||
/**
|
||||
* @title Publication Prerequisite
|
||||
*/
|
||||
export type PublicationPrerequisite = {
|
||||
/**
|
||||
* @integer
|
||||
* @minimum 1
|
||||
*/
|
||||
id: number
|
||||
id: PublicationIdentifier
|
||||
|
||||
display_option?: DisplayOption
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user