is is there any api reference fore
# spicedb
y
is is there any api reference fore validating the schema so before pushing the changes make sure thing are correct are working fine ?
v
I'm not sure I understand the question. Do you want to programatically invoke validation locally by a shell command, or directly in your language of choice?
y
yep correct problematically validation of schema (go lang )
If schema fails , the
writeSchema
function returns an error, so I was wondering if there’s something like a
dry run
feature that can serve this purpose. if theirs not any validation available.
y
@Yoi do you just want to know about the statically-analyzable parts of the schema (like linting), or do you also want to know about compatibility with your data (like not removing a relation that still has data in it)?
if it's the first one,
zed validate
should do what you're after
y
(like not removing a relation that still has data in it)?
: this is not necessary as i already seen the api reference . just want for validation check for the schema (yeah linting , syntax......etc).
y
yeah, that's what
zed validate
is for
y
yeah i checked better will be using the gh action. thanks 👍