Skip to content

Commit 4db324d

Browse files
committed
MODFQMMGR-1053 Move fqmLink
1 parent 06bb433 commit 4db324d

2 files changed

Lines changed: 22 additions & 25 deletions

File tree

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1-
# fqm-tools only accepts a file path in `schema = ...`; it cannot target a nested
2-
# schema fragment there, so this wrapper bridges to the real runtime schema.
3-
$ref: '../../swagger.api/schemas/link.yaml#/fqmLink'
1+
# This wrapper defines the FQM-only link shape directly so the runtime schema can
2+
# stay focused on the API object exposed by mod-notes.
3+
type: object
4+
title: Note link
5+
description: Link record for FQM
6+
properties:
7+
linkId:
8+
$ref: '../../swagger.api/schemas/common.yaml#/uuid'
9+
description: UUID primary key of the link row; used by note_link.link_id
10+
x-fqm-value-getter: ${source}.id
11+
x-fqm-is-id-column: true
12+
x-fqm-visibility: "all"
13+
x-fqm-visible-by-default: true
14+
x-fqm-essential: true
15+
id:
16+
$ref: '../../swagger.api/schemas/link.yaml#/link/properties/id'
17+
type:
18+
$ref: '../../swagger.api/schemas/link.yaml#/link/properties/type'
19+
required:
20+
- linkId
21+
- id
22+
- type

src/main/resources/swagger.api/schemas/link.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,6 @@ link:
2323
id: 1234-5678
2424
type: package
2525

26-
fqmLink:
27-
type: object
28-
title: Note link
29-
description: Link record for FQM
30-
properties:
31-
linkId:
32-
$ref: 'common.yaml#/uuid'
33-
description: UUID primary key of the link row; used by note_link.link_id
34-
x-fqm-value-getter: ${source}.id
35-
x-fqm-is-id-column: true
36-
x-fqm-visibility: "all"
37-
x-fqm-visible-by-default: true
38-
x-fqm-essential: true
39-
id:
40-
$ref: '#/link/properties/id'
41-
type:
42-
$ref: '#/link/properties/type'
43-
required:
44-
- linkId
45-
- id
46-
- type
47-
4826
linkStatus:
4927
type: string
5028
enum: [ ASSIGNED, UNASSIGNED ]

0 commit comments

Comments
 (0)