From 1770686160e8e978ccfc819784c47d0c16d7c46f Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 27 Sep 2023 14:02:58 +1300 Subject: [PATCH] Update --- src/FileFormats/MOF/MOF.jl | 10 +++++++++- .../MOF/{mof.1.6.schema.json => mof.schema.json} | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) rename src/FileFormats/MOF/{mof.1.6.schema.json => mof.schema.json} (99%) diff --git a/src/FileFormats/MOF/MOF.jl b/src/FileFormats/MOF/MOF.jl index 23d100a52a..fe08af1559 100644 --- a/src/FileFormats/MOF/MOF.jl +++ b/src/FileFormats/MOF/MOF.jl @@ -11,8 +11,16 @@ import OrderedCollections: OrderedDict import JSON import MathOptInterface as MOI -const SCHEMA_PATH = joinpath(@__DIR__, "mof.1.6.schema.json") +""" + SCHEMA_PATH::String + +The path to the latest version of the MathOptFormat schema supported by +MathOptInterface. +""" +const SCHEMA_PATH = joinpath(@__DIR__, "mof.schema.json") + const VERSION = v"1.6" + const SUPPORTED_VERSIONS = ( v"1.6", v"1.5", diff --git a/src/FileFormats/MOF/mof.1.6.schema.json b/src/FileFormats/MOF/mof.schema.json similarity index 99% rename from src/FileFormats/MOF/mof.1.6.schema.json rename to src/FileFormats/MOF/mof.schema.json index ec3e2fbdc5..3481525f9e 100644 --- a/src/FileFormats/MOF/mof.1.6.schema.json +++ b/src/FileFormats/MOF/mof.schema.json @@ -442,7 +442,7 @@ } } }, { - "description": "The vector-valued nonlinear function `f(x)`.", + "description": "The vector-valued nonlinear function `f(x)`, comprised of a vector of `ScalarNonlinearFunction`.", "required": ["rows", "node_list"], "properties": { "type": {