Error: (compile:scraml) Cannot find type with native id NativeId({


#1

Am using scraml library.

Using the sample given by them.

Getting an error like while referring a simple schema file.

Error: (compile:scraml) Cannot find type with native id NativeId({

Am not able to understand this error.

Please help !!!


#2

Hi,

Could you try the latest develop branch again? I upgraded the scraml plugin to 0.5.2, which seems to work fine.

Best regards,
Peter


#3

Hi,

Thanks for the reply and solution.

I changed the plugins.sbt with the new version.

And getting the error on package names.

For json schema files, I canged the “id” field to
point local files, since the “id” : "http:atomicbits.io/…"
is not available.

Please find attached the screenshot of the error.

Regards,
Sowmiya.M


#4

It seems to be a path issue on Windows. Before we continue to discuss this, could you add an issue to https://github.com/atomicbits/scraml/issues ? Then we can discuss it further on github, since it is a scraml specific issue.

Best regards,
Peter


#5

The matter of the json-schema id’s is more general, however. Those id’s don’t necessarily have to point to an actual online location. You can use them as ‘internal references’, as described by the json-schema specification here. So, you should consider them more as a unique id for your schema.

In other words, you con’t have to change them. You should be able to compile and run the tests without changing any code or RAML spec using ‘mvn test’.

Regards,

Peter


#6

Hi Peter,

I have added an issue to the github project.

Please have a look at it.

Regards,
Sowmiya.M