Skip to content

Instantly share code, notes, and snippets.

@wshayes
wshayes / testjsonschema.py
Created June 24, 2014 23:58
python jsonschema validation error for top-level oneOf construct
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import jsonschema
schema_json = '''
{
"$schema": "http://json-schema.org/draft-04/schema",
"oneOf": [{
@yrom
yrom / UsingCookiesRequest.java
Created October 24, 2013 06:28
Volley: 带cookies的 request
/*
* Copyright (C) 2013 YROM.NET
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software