nmfs-fish-tools / fishdictionary

A dictionary scheme for fisheries
https://connect.fisheries.noaa.gov/fishdictionary
GNU Affero General Public License v3.0
5 stars 1 forks source link

37 use json schema to validate terms in the dictionary #38

Closed Bai-Li-NOAA closed 1 year ago

Bai-Li-NOAA commented 1 year ago

This PR addresses issue #37. validate_Rd() function has been added to the repo to validate dictionary terms from the .Rd files. Tests can be found here.

The validate_Rd() function will return errors if the details of examples, rationale, alternatives, range of possible values, and units are missing.