mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 20:47:45 +00:00
Working through fix-73 and v0.6.0
This commit is contained in:
19
datamodel/document_config.go
Normal file
19
datamodel/document_config.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// Copyright 2023 Princess B33f Heavy Industries / Dave Shanley
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package datamodel
|
||||
|
||||
import "net/url"
|
||||
|
||||
// DocumentConfiguration is used to configure the document creation process. It was added in v0.6.0 to allow
|
||||
// for more fine-grained control over controls and new features.
|
||||
type DocumentConfiguration struct {
|
||||
// if the document uses relative file references, this is the base url to use when resolving them.
|
||||
BaseURL *url.URL
|
||||
|
||||
// AllowFileReferences will allow the index to locate relative file references. This is disabled by default.
|
||||
AllowFileReferences bool
|
||||
|
||||
// AllowRemoteReferences will allow the index to lookup remote references. This is disabled by default.
|
||||
AllowRemoteReferences bool
|
||||
}
|
||||
Reference in New Issue
Block a user