Skip to content

Auto-generated schema files don't work out-of-the-box #150

Answered by DeeChau
iMacTia asked this question in Q&A
Discussion options

You must be logged in to vote

Sure thing @dorner,

Hey @iMacTia, generated schema classes are generated under Deimos.config.schema.generated_class_path which defaults to the path app/lib/schema_classes, so the nested folder structure org/company/my_schemas are be created with that in mind.

The auto-generated Ruby class gets placed alongside the schema file, but the only module in the file is module Schemas.

Can you provide me with the config.schema.generated_class_path and config.schema.path to help me understand where these are located?

The solution here would be to either include the schema namespace in the ruby file modules, or create the ruby file in the root (specified in the Deimos config).

I considered inclu…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@dorner
Comment options

@iMacTia
Comment options

@dorner
Comment options

@DeeChau
Comment options

DeeChau Mar 31, 2022
Collaborator

@iMacTia
Comment options

Answer selected by iMacTia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants