This JSON schema defines the structure of a Data Source component used in Fliplet apps. The component includes a name, list of columns, entries (data), and access rules.
- Type: string
- Required: Yes
- Title: The name of the data source.
- Type: array
- Items: string
- Required: Yes
- Title: The list of columns included in the data source.
- Type: array
- Items: object
- Required: Yes
- Title: The entries (data) for the data source.
- Type: array
- Items: object
- Required: Yes
- Title: The access rules for the data source.
- Type: string
- Required: Yes
- Title: The name of the access rule.
- Type: array
- Items: string (enum)
- Required: Yes
- Title: The type of access rule, which can be
select
,insert
,update
, ordelete
.
- Type: anyOf
- Object: An object with a
tokens
property that includes an array of integers to specify access based on tokens provided. - String: A string that is either
loggedIn
orall
to specify access for logged-in users or all users, respectively. - Object: An object that includes a
user
property to specify access based on user properties. Theuser
object includesadditionalProperties
that specify the property values and whether they should equal, contain, or not equal a specified string.
- Object: An object with a
- Required: Yes
- Title: The access rule allowing specific conditions.
- Type: array
- Items: integer
- Required: No
- Title: The list of application IDs allowed for access.
- Type: string
- Required: No
- Title: The custom script used for evaluating the access rule.
- Type: boolean
- Required: Yes
- Title: Specifies whether the access rule is enabled or disabled.
- Type: array
- Items: string
- Required: No
- Title: The list of columns to exclude for this access rule.
- Type: array
- Items: string
- Required: No
- Title: The list of columns to include for this access rule.
- Type: array
- Items: anyOf
- String: The required column for this access rule.
- Object: An object that includes
additionalProperties
that specifies the property values and whether they should equal, contain, or not equal a specified string.
- Required: No
- Title: The list of columns or property requirements for this access rule.
This schema defines the structure of a data source object that includes a name, list of columns, entries (data), and access rules. Developers should use this schema to generate the JSON code that is used to create data sources in Fliplet apps.