Comments (11)
Yes, this happens a lot now. So what happens that AJV had an update , where you need to add this: ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));
If the schema won't be defined by the caller
from ajsf.
@hamzahamidi , You get the following error now:
ERROR Error: no schema with key or ref "http://json-schema.org/draft-06/schema#" at Ajv.validate (vendor.bundle.js:sourcemap:98) at Ajv.validateSchema (vendor.bundle.js:sourcemap:184) at Ajv._addSchema (vendor.bundle.js:sourcemap:318) at Ajv.compile (vendor.bundle.js:sourcemap:118) at JsonSchemaFormService.webpackJsonp.../../../../../src/lib/src/json-schema-form.service.ts.JsonSchemaFormService.compileAjvSchema (json-schema-form.service.ts:278) at JsonSchemaFormComponent.webpackJsonp.../../../../../src/lib/src/json-schema-form.component.ts.JsonSchemaFormComponent.activateForm (json-schema-form.component.ts:664) at JsonSchemaFormComponent.webpackJsonp.../../../../../src/lib/src/json-schema-form.component.ts.JsonSchemaFormComponent.initializeForm (json-schema-form.component.ts:305) at JsonSchemaFormComponent.webpackJsonp.../../../../../src/lib/src/json-schema-form.component.ts.JsonSchemaFormComponent.updateForm (json-schema-form.component.ts:205) at JsonSchemaFormComponent.webpackJsonp.../../../../../src/lib/src/json-schema-form.component.ts.JsonSchemaFormComponent.ngOnChanges (json-schema-form.component.ts:178) at checkAndUpdateDirectiveInline (vendor.bundle.js:sourcemap:132289)
from ajsf.
Not yet, but you just need to add this line when you initialize the ajv object
from ajsf.
Somehow I can't add PR, but if you can do that line, then it is great :)
from ajsf.
Thank you @remonzh & @sinoysiby .I'll check this out asap
from ajsf.
Yes, this happens a lot now. So what happens that AJV had an update , where you need to add this: ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));
If the schema won't be defined by the caller
@remonzh Do you a ready PR?
from ajsf.
Not yet, but you just need to add this line when you initialize the ajv object
Thank you @remonzh . Can you provide a PR for this?
from ajsf.
@remonzh I can't reproduce the issue in the online demo. If you have time, can you give me an example? Thank you
from ajsf.
https://hamidihamza.com/Angular6-json-schema-form/?set=ng-jsf&example=ng-jsf-data-only&framework=material-design&language=en
You go here & choose "Data Only" From the Current Example Drop box. here is how it looks like:
And here is the error
from ajsf.
I am getting this same issue with Angular 7 and Material Design framework.
Could we merge this resoluution into the NPM build?
from ajsf.
I am getting this issue in all the frameworks i am trying to use. I am using Angular 6/Node 8. I have opened a new issue also in this case. Do you know how to resolve this issue? I have opened #82 with this same problem
from ajsf.
Related Issues (20)
- Angular 13 support HOT 1
- validationErrors: submit is enabled even if function return false HOT 1
- Reset Json Schema form
- support bootstrap 5
- Some performances issues with recent versions of Edge ?
- Warnings due to CommonJS or AMD dependencies which can cause optimization bailouts
- additionalProperties aren't displayed HOT 2
- customized widget doesn't return a value HOT 1
- The `None` item in enum dropdown lists considered as `"null"`
- [Question] How to implement your own UI components along with custom styling?
- NullInjectorError: No provider for Framework! HOT 1
- Angular 15 material design support HOT 2
- Get rid of deprecated FlexModule dependency HOT 2
- multipleOf validator uses default remainder operator to validate which results in incorrect result
- Invalid appearance "standard", valid values are "fill" or "outline".
- providing default values to components
- "defautWidgetOptions" typo
- Nested array, last element controls surfaced data
- Fieldset along with the Select all checkbox.
- Custom widget Not able to add
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ajsf.