Skip to content

Commit

Permalink
godoc: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-tekuri committed Jun 3, 2024
1 parent 40de0fb commit 1db2bc6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ func (c *Compiler) AssertFormat() {
// AssertContent enables content assertions.
//
// Content assertions include keywords:
// - contentEncoding
// - contentMediaType
// - contentSchema
// - contentEncoding
// - contentMediaType
// - contentSchema
//
// Default behavior is always disabled.
func (c *Compiler) AssertContent() {
Expand All @@ -69,7 +69,7 @@ func (c *Compiler) AssertContent() {
// RegisterFormat registers custom format.
//
// NOTE:
// - `regex` format can not be overridden
// - "regex" format can not be overridden
// - format assertions are disabled for draft >= 2019-09
// see [Compiler.AssertFormat]
func (c *Compiler) RegisterFormat(f *Format) {
Expand Down Expand Up @@ -117,6 +117,7 @@ func (c *Compiler) AssertVocabs() {
// resolution.
//
// The argument url can be file path or url. Any fragment in url is ignored.
// The argument doc must be valid json value.
func (c *Compiler) AddResource(url string, doc any) error {
uf, err := absolute(url)
if err != nil {
Expand Down

0 comments on commit 1db2bc6

Please sign in to comment.