Adding filter display and management in Crud front
This commit is contained in:
@@ -206,6 +206,21 @@ export class JsonschemasService {
|
||||
path.substring(pointFirstPosition + 1)
|
||||
);
|
||||
}
|
||||
|
||||
get_property_by_path(resource: JSONSchema7, path: string): JSONSchema7 {
|
||||
const pointFirstPosition = path.indexOf('.')
|
||||
if (pointFirstPosition == -1) {
|
||||
return this.get_descendant(resource, path);
|
||||
}
|
||||
|
||||
return this.get_property_by_path(
|
||||
this.get_descendant(
|
||||
resource,
|
||||
path.substring(0, pointFirstPosition)
|
||||
),
|
||||
path.substring(pointFirstPosition + 1)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export interface Schema {
|
||||
|
||||
Reference in New Issue
Block a user