Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCK-8876: rename model items according to the spec #11

Merged
merged 3 commits into from
Nov 29, 2024
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
16 changes: 8 additions & 8 deletions localization/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"OBJECT___BROWSER_COLLECTION": "Operations",
"OBJECT___BROWSER_NESTED_COLLECTIONS": "Responses",
"OBJECT___BROWSER_VIEWS": "Filtered Aliases",
"OBJECT___BROWSER_DEFINITIONS": "Objects",
"OBJECT___BROWSER_DEFINITIONS": "Types",
"OBJECT___BROWSER_FIELDS": "Fields",
"PROPERTIES_PANE___BUCKET_NAME": "Operation path",
"PROPERTIES_PANE___VIEW_NAME": "Filtered alias name",
Expand Down Expand Up @@ -141,17 +141,17 @@
"COLLECTION_SCHEMA_DEFINITION_TYPE": "document",
"MONGODB_SCRIPT_WARNING_MESSAGE": "This view is not associated to a operation (viewOn property).",
"TYPE": {},
"CENTRAL_PANE___TAB_MODEL_DEFINITIONS": "Objects",
"CONTEXT_MENU___ADD_MODEL_REFERENCE": "Object",
"CONTEXT_MENU___GO_TO_DEFINITION": "Go to Object",
"DOCUMENTATION___DB_DEFINITIONS": "Objects",
"CENTRAL_PANE___TAB_MODEL_DEFINITIONS": "Types",
"CONTEXT_MENU___ADD_MODEL_REFERENCE": "Type",
"CONTEXT_MENU___GO_TO_DEFINITION": "Go to Type",
"DOCUMENTATION___DB_DEFINITIONS": "Types",
"CONTEXT_MENU___CONVERT_TO_PATTERN_FIELD": "Convert to Pattern Field",
"CONTEXT_MENU___CONVERT_PATTERN_TO_REGULAR_FIELD": "Convert to Regular Field",
"CENTRAL_PANE___FE_SCRIPT": "GraphQL File",
"CENTRAL_PANE___SPLIT_MODEL_LEVEL_FE_VIEW": "Show Interactive API pane",
"MODAL_WINDOW___FE_SCRIPT_OPTION_UPDATE": "CURL Script",
"MODAL_WINDOW___FE_SCRIPT_OPTION_CREATE": "Kibana Script",
"DEFINITIONS___MODEL_DEFINITION_ROOT_ELEMENT_NAME": "objects",
"CONTEXT_MENU___CONVERT_TO_DEFINITION": "Convert to Object",
"CONTEXT_MENU___REPLACE_BY_DEFINITION": "Replace by Object"
"DEFINITIONS___MODEL_DEFINITION_ROOT_ELEMENT_NAME": "types",
"CONTEXT_MENU___CONVERT_TO_DEFINITION": "Convert to Type",
"CONTEXT_MENU___REPLACE_BY_DEFINITION": "Replace by Type"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"entityLevel": true,
"containerLevel": true,
"fieldLevel": {
"componentObject": true,
"type": true,
"operationObject": true,
"extensions": true,
"media": true
Expand Down
4 changes: 2 additions & 2 deletions properties_pane/defaultData.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"dependency": {
"key": "childType",
"value": "componentObject"
"value": "type"
}
},
{
Expand Down Expand Up @@ -96,7 +96,7 @@
"dependency": {
"level": "parent",
"key": "childType",
"value": "componentObject"
"value": "type"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions properties_pane/field_level/fieldLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ making sure that you maintain a proper JSON format.
}
],
"definitions": [],
"componentObject": [
"type": [
{
"fieldName": "Name",
"fieldKeyword": "name",
Expand Down Expand Up @@ -395,7 +395,7 @@ making sure that you maintain a proper JSON format.
],
"scalar": ["name", "description", "comments"],
"enum": ["name", "enum", "description", "comments"],
"type": ["name", "description", "required", "minProperties", "maxProperties", "comments"],
"object": ["name", "description", "required", "minProperties", "maxProperties", "comments"],
"interface": ["name", "description", "required", "minProperties", "maxProperties", "comments"],
"union": ["name", "description", "required", "comments"],
"input": ["name", "description", "required", "comments"],
Expand Down
35 changes: 15 additions & 20 deletions snippets/definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,41 @@
"parentType": "definitions",
"properties": [
{
"name": "scalars",
"type": "componentObject",
"name": "Scalars",
"type": "type",
"subtype": "scalar",
"hackoladeMeta": {
"source": true // TODO: source is used to indicate that the component is a parent of definitions, should be checked
}
},
{
"name": "enums",
"type": "componentObject",
"name": "Enums",
"type": "type",
"subtype": "enum"
},
{
"name": "types",
"type": "componentObject",
"subtype": "type"
"name": "Objects",
"type": "type",
"subtype": "object"
},
{
"name": "interfaces",
"type": "componentObject",
"name": "Interfaces",
"type": "type",
"subtype": "interface"
},
{
"name": "unions",
"type": "componentObject",
"name": "Unions",
"type": "type",
"subtype": "union"
},
{
"name": "inputs",
"type": "componentObject",
"name": "Input objects",
"type": "type",
"subtype": "input"
},
{
"name": "extends",
"type": "componentObject",
"subtype": "extend"
},
{
"name": "directives",
"type": "componentObject",
"name": "Directives",
"type": "type",
"subtype": "directive"
}
]
Expand Down
134 changes: 0 additions & 134 deletions types/componentObject.json

This file was deleted.

2 changes: 1 addition & 1 deletion types/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"Int",
"Float",
"Boolean",
"type",
"object",
"interface",
"union",
"enum"
Expand Down
35 changes: 35 additions & 0 deletions types/object.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "object",
"erdAbbreviation": "<object>",
"dtdAbbreviation": "{...}",
"parentType": "document",
"defaultValues": {
"relationshipType": "",
"parentRelationship": "",
"childRelationships": [],
"foreignCollection": "",
"foreignField": [],
"properties": [],
"dependencies": [],
"ignore_z_value": true,
"minProperties": "",
"maxProperties": "",
"additionalProperties": false,
"enum": []
},
"subtypes": {
"snippetChildrenOnly": {
"childValueType": [
"String",
"ID",
"Int",
"Float",
"Boolean",
"object",
"interface",
"union",
"enum"
]
}
}
}
Loading