~jomco/ring-openapi-validator

5763e027240605722e035eef89c8e81febd2531f — Joost Diepenmaat 2 years ago 2b9c35b
Prep move to jomco org
4 files changed, 13 insertions(+), 10 deletions(-)

M README.md
M project.clj
R src/nl/{zeekat/ring_openapi_validator.clj => jomco/ring_openapi_validator.clj}
R test/nl/{zeekat/ring_openapi_validator_test.clj => jomco/ring_openapi_validator_test.clj}
M README.md => README.md +4 -4
@@ 7,11 7,11 @@ to do the actual validation.

## Dependency coordinates

    [nl.zeekat/ring-openapi-validator "0.1.1"]
    [nl.jomco/ring-openapi-validator "0.1.1"]

## Usage

      (require '[nl.zeekat.ring-openapi-validator :as validator])
      (require '[nl.jomco.ring-openapi-validator :as validator])
      
      (def validator (validator/openapi-validator "path/to/spec.json"))
      


@@ 22,11 22,11 @@ to do the actual validation.

## Documentation

API documentation is available inline and at [cljdoc](https://cljdoc.org/d/nl.zeekat/ring-openapi-validator/CURRENT).
API documentation is available inline and at [cljdoc](https://cljdoc.org/d/nl.jomco/ring-openapi-validator/CURRENT).

## License

Copyright © 2020 - 2021 Joost Diepenmaat, Zeekat Software Ontwikkeling
Copyright © 2020 - 2021 Joost Diepenmaat

This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at

M project.clj => project.clj +6 -3
@@ 1,9 1,12 @@
(defproject nl.zeekat/ring-openapi-validator "0.1.1"
(defproject nl.jomco/ring-openapi-validator "0.1.2-SNAPSHOT"
  :description "Validate ring requests and responses against Swagger/OpenAPI"
  :url "https://github.com/zeekat/ring-openapi-validator"
  :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
            :url "https://www.eclipse.org/legal/epl-2.0/"}
            :url  "https://www.eclipse.org/legal/epl-2.0/"}
  :dependencies [[org.clojure/clojure "1.10.0" :scope "provided"]
                 [cheshire "5.10.0" :exclusions [com.fasterxml.jackson.core/jackson-core]]
                 [com.atlassian.oai/swagger-request-validator-core "2.18.1"]]
  :profiles {:dev {:resource-paths ["dev-resources"]}})
  :profiles {:dev {:resource-paths ["dev-resources"]}}
  ;; link to git repo, also ensures that cljdoc.org finds additional markdown files
  :scm {:name "git"
        :url  "https://git.sr.ht/~jomco/ring-openapi-validator"})

R src/nl/zeekat/ring_openapi_validator.clj => src/nl/jomco/ring_openapi_validator.clj +1 -1
@@ 1,4 1,4 @@
(ns nl.zeekat.ring-openapi-validator
(ns nl.jomco.ring-openapi-validator
  (:require [clojure.string :as string]
            [cheshire.core :as json])
  (:import com.atlassian.oai.validator.OpenApiInteractionValidator

R test/nl/zeekat/ring_openapi_validator_test.clj => test/nl/jomco/ring_openapi_validator_test.clj +2 -2
@@ 1,8 1,8 @@
(ns nl.zeekat.ring-openapi-validator-test
(ns nl.jomco.ring-openapi-validator-test
  (:require [cheshire.core :as json]
            [clojure.java.io :as io]
            [clojure.test :refer [deftest testing is]]
            [nl.zeekat.ring-openapi-validator :as validator]))
            [nl.jomco.ring-openapi-validator :as validator]))

(def ooapi-content-type "application/hal+json; charset=utf-8")