Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions mappings/.schema/descriptors.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
title: Descriptor Mappings
type: object
required:
- name
- description
- mappings
properties:
name:
type: string
description:
type: string
mappings:
type: object
additionalProperties:
oneOf:
- type: string
- type: number
- type: object
properties:
additionalProperties:
oneOf:
- type: string
- type: number
- type: object
propertyNames:
pattern: ^[a-z][a-z_]+$
17 changes: 17 additions & 0 deletions mappings/.schema/generic.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
title: Generic Mappings
type: object
required:
- name
- description
- mappings
properties:
name:
type: string
description:
type: string
mappings:
type: object
additionalProperties:
type: string
propertyNames:
pattern: ^[a-z][a-z|A-Z|_]+$
17 changes: 17 additions & 0 deletions mappings/.schema/settings.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
title: Settings Mappings
type: object
required:
- name
- description
- mappings
properties:
name:
type: string
description:
type: string
mappings:
type: object
additionalProperties:
type: [string, number, boolean, array]
propertyNames:
pattern: ^[a-z][a-z|A-Z|_]+$
3 changes: 2 additions & 1 deletion mappings/descriptors/generics/generic.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
# yaml-language-server: $schema=../../.schema/descriptors.schema.yaml
name: Generic descriptor mappings
description: Descriptor Mappings for all tenant types (generic)
mappings:
example: one
exampleTwo: two
example_two: two
4 changes: 3 additions & 1 deletion mappings/descriptors/tenants/257378186566963200.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
# yaml-language-server: $schema=../../.schema/descriptors.schema.yaml

# A test mapping file for tenant 257378186566963200 referred as foo.example.com
name: FOO.EXAMPLE.CO ORG mappings
description: Descriptor mappings for tenant FOO.EXAMPLE.CO
mappings:
example: one
exampleTwo: two
example_two: two
1 change: 1 addition & 0 deletions mappings/settings/generics/generic.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=../../.schema/settings.schema.yaml
name: Settings for all tenant types (Generic)
description: These are generic settings for all the tenant types
mappings:
Expand Down
10 changes: 10 additions & 0 deletions mappings/settings/tenants/257378186566963200.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# yaml-language-server: $schema=../../.schema/settings.schema.yaml

# A test settings mapping file for tenant 257378186566963200 referred as foo.example.com
name: Settings for all tenant types (Generic)
description: These are generic settings for all the tenant types
mappings:
tracking:
# This will be overridden from `null` to the below value
- domain: https://link.foo.com
2 changes: 1 addition & 1 deletion src/Concerns/FunctionalMappingTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function genericMapFile(): string
/**
* Get tenant map file `/path/name`
*
* @param string $tenantId Tenant UID
* @param string $tenantId Tenant ID
*/
public function tenantMapFile(string $tenantId): string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/MappingType.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function genericMapFile(): string;
/**
* Get tenant map file `/path/name`
*
* @param string $tenantId Tenant UID
* @param string $tenantId Tenant ID
*/
public function tenantMapFile(string $tenantId): string;

Expand Down
Loading