Drazzilb08 / daps

DAPS (Drazzilb's Arr PMM Scripts) A collection of useful scripts for media management and automation
MIT License
154 stars 31 forks source link

Create schema validator for the config file and add to the sample #161

Closed GeneralPractitioner-GP closed 7 months ago

GeneralPractitioner-GP commented 7 months ago

The schema validator can make sure that the fields which are required are present and are of the correct type.

You can test it from my fork by changing the URL to https://raw.githubusercontent.com/GeneralPractitioner-GP/daps/schema-validator/schemas/config-schema.json

It's the first one that I've created outside of testing them out on other projects. Thought it might help those that are confused by what is required.

I tested it on the example and my config file.

Recyclarr has some good docs on how to get it to work https://recyclarr.dev/wiki/schema-validation/

Drazzilb08 commented 7 months ago

Sorry I haven't had a chance to look this over. I love the idea and addition to the code. I hope to get to it soon. I've been dumb busy with work, home and medical issues recently but I will soon (I hope)

Edit: I finally got a chance to play with this. I love it..

GeneralPractitioner-GP commented 7 months ago

Sorry I haven't had a chance to look this over. I love the idea and addition to the code. I hope to get to it soon. I've been dumb busy with work, home and medical issues recently but I will soon (I hope)

Edit: I finally got a chance to play with this. I love it..

Glad you like it :) Hope you get better soon!